Struct qaul_cli::user_accounts::UserAccounts
source · [−]pub struct UserAccounts {
initialiation: MyUserAccountInitialiation,
my_user_account: Option<MyUserAccount>,
}
Expand description
user accounts module function handling
Fields
initialiation: MyUserAccountInitialiation
my_user_account: Option<MyUserAccount>
Implementations
sourceimpl UserAccounts
impl UserAccounts
sourcepub fn get_user_id() -> Option<Vec<u8>>
pub fn get_user_id() -> Option<Vec<u8>>
return user id
sourcepub fn cli(command: &str)
pub fn cli(command: &str)
CLI command interpretation
The CLI commands of user accounts module are processed here
sourcefn create_user_account(user_name: String)
fn create_user_account(user_name: String)
Create new user account
sourcefn request_default_account()
fn request_default_account()
Request default user account
Auto Trait Implementations
impl RefUnwindSafe for UserAccounts
impl Send for UserAccounts
impl Sync for UserAccounts
impl Unpin for UserAccounts
impl UnwindSafe for UserAccounts
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more