Struct authenticator::models::otp_uri::OTPUri
source · pub struct OTPUri {
pub(crate) algorithm: Algorithm,
pub(crate) label: String,
pub(crate) secret: String,
pub(crate) issuer: String,
pub(crate) method: Method,
pub(crate) digits: Option<u32>,
pub(crate) period: Option<u32>,
pub(crate) counter: Option<u32>,
}
Fields§
§algorithm: Algorithm
§label: String
§secret: String
§issuer: String
§method: Method
§digits: Option<u32>
§period: Option<u32>
§counter: Option<u32>
Trait Implementations§
source§impl RestorableItem for OTPUri
impl RestorableItem for OTPUri
fn account(&self) -> String
fn issuer(&self) -> String
fn secret(&self) -> String
fn period(&self) -> Option<u32>
fn method(&self) -> Method
fn algorithm(&self) -> Algorithm
fn digits(&self) -> Option<u32>
fn counter(&self) -> Option<u32>
fn restore(&self, provider: &ProvidersModel) -> Result<()>
Auto Trait Implementations§
impl RefUnwindSafe for OTPUri
impl Send for OTPUri
impl Sync for OTPUri
impl Unpin for OTPUri
impl UnwindSafe for OTPUri
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