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§
Sourcefn account_id(&self) -> &AccountId
fn account_id(&self) -> &AccountId
Account identifier.
Sourcefn authenticated_user(&self) -> Option<&Identity>
fn authenticated_user(&self) -> Option<&Identity>
Authenticated user information.
Sourcefn authenticated_user_mut(&mut self) -> Option<&mut Identity>
fn authenticated_user_mut(&mut self) -> Option<&mut Identity>
Mutable authenticated user information.
Sourcefn backend_target(&self) -> &BackendTarget
fn backend_target(&self) -> &BackendTarget
Backend target.
Provided Methods§
Sourcefn is_authenticated(&self) -> bool
fn is_authenticated(&self) -> bool
Determine if the storage is authenticated.