[][src]Trait yew_state::Storable

pub trait Storable: Serialize + for<'a> Deserialize<'a> {
    fn key() -> &'static str;
fn area() -> Area; }

Allows state to be stored persistently in local or session storage.

Required methods

fn key() -> &'static str

The key used to save and load state from storage.

fn area() -> Area

The area to store state.

Loading content...

Implementors

Loading content...