pub struct Mfa { /* private fields */ }Implementations§
Source§impl Mfa
impl Mfa
pub fn new() -> Result<Self, String>
pub fn register_profile( &mut self, account_name: &str, secret: &str, ) -> Result<(), String>
pub fn list_profiles(&self) -> Vec<Profile>
pub fn remove_profile(&mut self, profile_name: &str) -> Result<(), String>
pub fn get_secret_by_name(&self, profile_name: &str) -> Option<Vec<u8>>
pub fn get_code_by_name(&self, profile_name: &str) -> Result<String, String>
pub fn dump(&self) -> Result<(), String>
pub fn restore(&mut self) -> Result<(), String>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Mfa
impl RefUnwindSafe for Mfa
impl Send for Mfa
impl Sync for Mfa
impl Unpin for Mfa
impl UnwindSafe for Mfa
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more