tauri_store

Type Alias StoreState

Source
pub type StoreState = HashMap<String, Value>;

Aliased Type§

struct StoreState { /* private fields */ }

Trait Implementations§

Source§

impl StoreStateExt for StoreState

Source§

fn parse<T: DeserializeOwned>(&self) -> Result<T>

Tries to parse the store state as an instance of type T.
Source§

fn try_get<T: DeserializeOwned>(&self, key: impl AsRef<str>) -> Result<T>

Gets a value from the store and tries to parse it as an instance of type T.