Struct kanidm_proto::v1::TotpSecret
source · [−]pub struct TotpSecret {
pub accountname: String,
pub issuer: String,
pub secret: Vec<u8>,
pub algo: TotpAlgo,
pub step: u64,
}
Fields
accountname: String
issuer: String
User-facing name of the system, issuer of the TOTP
secret: Vec<u8>
algo: TotpAlgo
step: u64
Implementations
sourceimpl TotpSecret
impl TotpSecret
Trait Implementations
sourceimpl Clone for TotpSecret
impl Clone for TotpSecret
sourcefn clone(&self) -> TotpSecret
fn clone(&self) -> TotpSecret
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for TotpSecret
impl Debug for TotpSecret
sourceimpl<'de> Deserialize<'de> for TotpSecret
impl<'de> Deserialize<'de> for TotpSecret
sourcefn 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
sourceimpl Serialize for TotpSecret
impl Serialize for TotpSecret
Auto Trait Implementations
impl RefUnwindSafe for TotpSecret
impl Send for TotpSecret
impl Sync for TotpSecret
impl Unpin for TotpSecret
impl UnwindSafe for TotpSecret
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more