Skip to main content

Evolve

Derive Macro Evolve 

Source
#[derive(Evolve)]
{
    // Attributes available to this derive:
    #[serde]
    #[wire]
}
Expand description

Generate typed preparation, projection and schema for stable evolution IDs.

On a named struct, every field has #[wire(id = N)] and the value is Option<T>. Use #[wire(id = N, required)] for a required T. An enum declares open cases using #[wire(id = N)] on each unit or newtype variant. The generated methods use Wire’s admitted Postcard codec.