Skip to main content

EdifactSerialize

Derive Macro EdifactSerialize 

Source
#[derive(EdifactSerialize)]
{
    // Attributes available to this derive:
    #[edifact]
}
Expand description

Derive edifact_rs::EdifactSerialize for segment or message structs.

ยงLimitations

  • No generics: the struct must not have generic type parameters.
  • No lifetime parameters: the struct must own all its data (String, not &str). Borrow-based structs such as Segment<'a> cannot use this derive macro.