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 callingDefault::default()
. - Initialize the default state of the annotated struct on application startup using
ctor
. The default state is the result of callingDefault::default()
. - Inject app states into the annotated function.
Derive Macros
- Derive macro for
InitAppState
. Allows you to initialize app states withinit_app_state
. - Derive macro for
InitMutAppState
. Allows you to initialize app states withinit_mut_app_state
.