Trait ClientBaseStorage

Source
pub trait ClientBaseStorage {
    // Required methods
    fn account_id(&self) -> &AccountId;
    fn authenticated_user(&self) -> Option<&Identity>;
    fn authenticated_user_mut(&mut self) -> Option<&mut Identity>;
    fn paths(&self) -> Arc<Paths>;
    fn backend_target(&self) -> &BackendTarget;

    // Provided method
    fn is_authenticated(&self) -> bool { ... }
}
Expand description

Common functions for all client storage traits.

Required Methods§

Source

fn account_id(&self) -> &AccountId

Account identifier.

Source

fn authenticated_user(&self) -> Option<&Identity>

Authenticated user information.

Source

fn authenticated_user_mut(&mut self) -> Option<&mut Identity>

Mutable authenticated user information.

Source

fn paths(&self) -> Arc<Paths>

Computed storage paths.

Source

fn backend_target(&self) -> &BackendTarget

Backend target.

Provided Methods§

Source

fn is_authenticated(&self) -> bool

Determine if the storage is authenticated.

Implementors§