Crate compose_spec_macros

Source
Expand description

Procedural macros for use within the compose_spec crate.

§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.
DeserializeFromStr
Derive macro for Deserialize which uses the type’s FromStr implementation to deserialize it from a string.
DeserializeTryFromString
Derive macro for Deserialize which uses the type’s TryFrom<String> implementation to deserialize it from a string.
FromShort
Derive macro for From<Short>, for use in combination with deriving AsShort.
SerializeDisplay
Derive macro for Serialize which uses the type’s Display implementation to serialize it as a string.
OSZAR »