Skip to main content

EdifactDeserialize

Derive Macro EdifactDeserialize 

Source
#[derive(EdifactDeserialize)]
{
    // Attributes available to this derive:
    #[edifact]
}
Available on crate feature derive only.
Expand description

Derive edifact_rs::EdifactDeserialize 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). Add owned wrapper types or clone components at the deserialization site if lifetime flexibility is required.