Struct rustotpony::RusTOTPony
source · pub struct RusTOTPony<DB: Database> { /* private fields */ }
Implementations§
source§impl<DB: Database> RusTOTPony<DB>
impl<DB: Database> RusTOTPony<DB>
pub fn new(db: DB) -> RusTOTPony<DB>
pub fn create_application( &mut self, name: &str, username: &str, secret: &str ) -> Result<(), String>
pub fn delete_application(&mut self, name: &str) -> Result<(), String>
pub fn rename_application( &mut self, name: &str, newname: &str ) -> Result<(), String>
pub fn get_applications(&self) -> Result<&HashMap<String, GenApp>, String>
pub fn get_application(&self, name: &str) -> Result<&GenApp, String>
pub fn delete_all_applications(&mut self)
pub fn flush(&self)
Auto Trait Implementations§
impl<DB> RefUnwindSafe for RusTOTPony<DB>where
DB: RefUnwindSafe,
impl<DB> Send for RusTOTPony<DB>where
DB: Send,
impl<DB> Sync for RusTOTPony<DB>where
DB: Sync,
impl<DB> Unpin for RusTOTPony<DB>where
DB: Unpin,
impl<DB> UnwindSafe for RusTOTPony<DB>where
DB: UnwindSafe,
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