pub struct RecoveryCodeStatus {
pub enrolled: bool,
pub issued_at: Option<DateTime<Utc>>,
pub last_used_at: Option<DateTime<Utc>>,
pub use_count: i32,
}Fields§
§enrolled: bool§issued_at: Option<DateTime<Utc>>When the current code was issued; replacement starts a new issuance.
last_used_at: Option<DateTime<Utc>>Last seed-preserving password reset that used the enrolled code.
use_count: i32Trait Implementations§
Source§impl Clone for RecoveryCodeStatus
impl Clone for RecoveryCodeStatus
Source§impl Debug for RecoveryCodeStatus
impl Debug for RecoveryCodeStatus
Source§impl<'de> Deserialize<'de> for RecoveryCodeStatus
impl<'de> Deserialize<'de> for RecoveryCodeStatus
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
impl Eq for RecoveryCodeStatus
Source§impl PartialEq for RecoveryCodeStatus
impl PartialEq for RecoveryCodeStatus
Source§impl Serialize for RecoveryCodeStatus
impl Serialize for RecoveryCodeStatus
impl StructuralPartialEq for RecoveryCodeStatus
Auto Trait Implementations§
impl Forget for RecoveryCodeStatus
impl Freeze for RecoveryCodeStatus
impl Move for RecoveryCodeStatus
impl RefUnwindSafe for RecoveryCodeStatus
impl Send for RecoveryCodeStatus
impl Sync for RecoveryCodeStatus
impl Unpin for RecoveryCodeStatus
impl UnsafeUnpin for RecoveryCodeStatus
impl UnwindSafe for RecoveryCodeStatus
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.