Skip to main content

State

Derive Macro State 

Source
#[derive(State)]
{
    // Attributes available to this derive:
    #[reducer]
    #[state_version]
    #[migrate_from]
    #[subset_of]
}
Expand description

Derive macro for State trait

Generates:

  • Update struct (each field becomes Option)
  • Field index constants
  • State trait implementation