#[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)] to require the field ID.
Its payload can be Option<T>, in which case a present None is valid
and an absent ID is incompatible.
An enum declares open cases using #[wire(id = N)] on each unit or newtype
variant. The generated methods use Wire’s admitted Postcard codec.