Crate app_state_macros

source ·

Attribute Macros

  • Initialize the default state of the annotated struct on application startup using ctor. The default state is the result of calling Default::default().
  • Initialize the default state of the annotated struct on application startup using ctor. The default state is the result of calling Default::default().
  • Inject app states into the annotated function.

Derive Macros

  • Derive macro for InitAppState. Allows you to initialize app states with init_app_state.
  • Derive macro for InitMutAppState. Allows you to initialize app states with init_mut_app_state.