Expand description
Procedural macros for use within the compose_spec
crate.
AsShort
- derivecompose_spec::AsShort
.FromShort
- deriveFrom<Short>
, designed for use in combination withAsShort
.SerializeDisplay
- deriveSerialize
using the type’sDisplay
implementation.DeserializeFromStr
- deriveDeserialize
using the type’sFromStr
implementation.DeserializeTryFromString
- deriveDeserialize
using the type’sTryFrom<String>
implementation.platforms!
- definePlatform
,Os
,Arch
, and{Os}Arch
enums and implementations.
§Warning
These macros are not designed to be used outside of the compose_spec
crate.
Macros§
- platforms
- Macro which defines
Platform
,Os
,Arch
and{Os}Arch
enums and implementations.
Derive Macros§
- AsShort
- Derive macro for
AsShort
. - Default
- Derive macro for
Default
which allows setting custom values via#[default = ...]
attributes. - Deserialize
From Str - Derive macro for
Deserialize
which uses the type’sFromStr
implementation to deserialize it from a string. - Deserialize
TryFrom String - Derive macro for
Deserialize
which uses the type’sTryFrom<String>
implementation to deserialize it from a string. - From
Short - Derive macro for
From<Short>
, for use in combination with derivingAsShort
. - Serialize
Display - Derive macro for
Serialize
which uses the type’sDisplay
implementation to serialize it as a string.