Struct authenticator::backup::aegis::Item
source · pub struct Item {
pub method: Method,
pub label: String,
pub issuer: Option<String>,
pub tags: Option<String>,
pub thumbnail: Option<String>,
pub info: Detail,
}
Expand description
An OTP Entry
Fields§
§method: Method
§label: String
§issuer: Option<String>
§thumbnail: Option<String>
§info: Detail
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Item
impl<'de> Deserialize<'de> for Item
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl RestorableItem for Item
impl RestorableItem for Item
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 Item
impl Send for Item
impl Sync for Item
impl Unpin for Item
impl UnwindSafe for Item
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