#[derive(IntoArma)]
{
// Attributes available to this derive:
#[arma]
}
Expand description
Derive implementation of IntoArma, only supports structs.
- Map structs are converted to an hashmap.
- Tuple structs are converted to an array.
- Newtype structs directly use’s the value’s
IntoArmaimplementation. - Unit-like structs are not supported.
§Container Attributes
#[arma(transparent)]: treat single field map structs as if its a newtype structs.
§Field Attributes
#[arma(to_string)]: use the typesstd::string::ToStringinstead ofIntoArma.