pub struct TotpDevice {
pub name: String,
pub pk: i32,
}
Expand description
TotpDevice : Serializer for totp authenticator devices
Fields§
§name: String
The human-readable name of this device.
pk: i32
Implementations§
Source§impl TotpDevice
impl TotpDevice
Sourcepub fn new(name: String, pk: i32) -> TotpDevice
pub fn new(name: String, pk: i32) -> TotpDevice
Serializer for totp authenticator devices
Trait Implementations§
Source§impl Clone for TotpDevice
impl Clone for TotpDevice
Source§fn clone(&self) -> TotpDevice
fn clone(&self) -> TotpDevice
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TotpDevice
impl Debug for TotpDevice
Source§impl Default for TotpDevice
impl Default for TotpDevice
Source§fn default() -> TotpDevice
fn default() -> TotpDevice
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TotpDevice
impl<'de> Deserialize<'de> for TotpDevice
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 PartialEq for TotpDevice
impl PartialEq for TotpDevice
Source§impl Serialize for TotpDevice
impl Serialize for TotpDevice
impl StructuralPartialEq for TotpDevice
Auto Trait Implementations§
impl Freeze for TotpDevice
impl RefUnwindSafe for TotpDevice
impl Send for TotpDevice
impl Sync for TotpDevice
impl Unpin for TotpDevice
impl UnwindSafe for TotpDevice
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