[][src]Trait yew_state::Storable

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

    fn key() -> &'static str { ... }
}

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

Required methods

fn area() -> Area

The area to store state.

Loading content...

Provided methods

fn key() -> &'static str

The key used to save and load state from storage.

Loading content...

Implementors

Loading content...