InitMutAppState

Derive Macro InitMutAppState 

Source
#[derive(InitMutAppState)]
Expand description

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

ยงExample

use app_state::{stateful, MutAppState, InitMutAppState};

#[derive(InitMutAppState)]
struct State {
  name: String,
}

fn main() {
  State {
    name: "Hello".to_string(),
  }.init_mut_app_state();
}