IntoArma

Derive Macro IntoArma 

Source
#[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 IntoArma implementation.
  • 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 types std::string::ToString instead of IntoArma.