pub fn from_state_json(json: &str) -> App {
        let state = State::from_json(json);
        let store = Rc::new(RefCell::new(Store::new(state)));

        let router = make_router(Rc::clone(&store));

        App { store, router }
    }
// TODO: Just use `new(config: AppConfig)` and pass in state json Option
Just use `new(config: AppConfig)` and pass in state json Option
Just use ` new ( config : AppConfig ) ` and pass in state json Option
pub fn from_state_json(json: &str) -> App {
        let state = State::from_json(json);
        let store = Rc::new(RefCell::new(Store::new(state)));
        let router = make_router(Rc::clone(&store));
        App { store, router }
    }
pub fn from_state_json ( json : & str ) -> App { let state = State :: from_json ( json ) ; let store = Rc :: new ( RefCell :: new ( Store :: new ( state ) ) ) ; let router = make_router ( Rc :: clone ( & store ) ) ; App { store , router } }
TODO: Just use `new(config: AppConfig)` and pass in state json Option
TODO : Just use ` new ( config : AppConfig ) ` and pass in state json Option
json
&str
json
&str