[][src]Struct libknox::TotpConfig

pub struct TotpConfig {
    pub secret: Vec<u8>,
    pub interval: u64,
    pub hash: TotpConfig_Hash,
    pub length: u32,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

secret: Vec<u8>interval: u64hash: TotpConfig_Hashlength: u32unknown_fields: UnknownFieldscached_size: CachedSize

Methods

impl TotpConfig[src]

pub fn new() -> TotpConfig[src]

pub fn get_secret(&self) -> &[u8][src]

pub fn clear_secret(&mut self)[src]

pub fn set_secret(&mut self, v: Vec<u8>)[src]

pub fn mut_secret(&mut self) -> &mut Vec<u8>[src]

pub fn take_secret(&mut self) -> Vec<u8>[src]

pub fn get_interval(&self) -> u64[src]

pub fn clear_interval(&mut self)[src]

pub fn set_interval(&mut self, v: u64)[src]

pub fn get_hash(&self) -> TotpConfig_Hash[src]

pub fn clear_hash(&mut self)[src]

pub fn set_hash(&mut self, v: TotpConfig_Hash)[src]

pub fn get_length(&self) -> u32[src]

pub fn clear_length(&mut self)[src]

pub fn set_length(&mut self, v: u32)[src]

Trait Implementations

impl Clear for TotpConfig[src]

impl Clone for TotpConfig[src]

impl Debug for TotpConfig[src]

impl Default for TotpConfig[src]

impl<'a> Default for &'a TotpConfig[src]

impl Message for TotpConfig[src]

impl PartialEq<TotpConfig> for TotpConfig[src]

impl ProtobufValue for TotpConfig[src]

impl StructuralPartialEq for TotpConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<Src, Scheme> ApproxFrom<Src, Scheme> for Src where
    Scheme: ApproxScheme, 

type Err = NoError

The error type produced by a failed conversion.

impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Src where
    Dst: ApproxFrom<Src, Scheme>,
    Scheme: ApproxScheme, 

type Err = <Dst as ApproxFrom<Src, Scheme>>::Err

The error type produced by a failed conversion.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, Dst> ConvAsUtil<Dst> for T

impl<T> ConvUtil for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<Src> TryFrom<Src> for Src

type Err = NoError

The error type produced by a failed conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<Src, Dst> TryInto<Dst> for Src where
    Dst: TryFrom<Src>, 

type Err = <Dst as TryFrom<Src>>::Err

The error type produced by a failed conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<Src> ValueFrom<Src> for Src

type Err = NoError

The error type produced by a failed conversion.

impl<Src, Dst> ValueInto<Dst> for Src where
    Dst: ValueFrom<Src>, 

type Err = <Dst as ValueFrom<Src>>::Err

The error type produced by a failed conversion.