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- deriveSerializeusing the type’sDisplayimplementation.DeserializeFromStr- deriveDeserializeusing the type’sFromStrimplementation.DeserializeTryFromString- deriveDeserializeusing the type’sTryFrom<String>implementation.platforms!- definePlatform,Os,Arch, and{Os}Archenums and implementations.
§Warning
These macros are not designed to be used outside of the compose_spec crate.
Macros§
- platforms
- Macro which defines
Platform,Os,Archand{Os}Archenums and implementations.
Derive Macros§
- AsShort
- Derive macro for
AsShort. - Default
- Derive macro for
Defaultwhich allows setting custom values via#[default = ...]attributes. - Deserialize
From Str - Derive macro for
Deserializewhich uses the type’sFromStrimplementation to deserialize it from a string. - Deserialize
TryFrom String - Derive macro for
Deserializewhich 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
Serializewhich uses the type’sDisplayimplementation to serialize it as a string.