pub struct RecoveryCodeForIdentity {
pub expires_at: Option<String>,
pub recovery_code: String,
pub recovery_link: String,
}Expand description
RecoveryCodeForIdentity : Used when an administrator creates a recovery code for an identity.
Fields§
§expires_at: Option<String>Expires At is the timestamp of when the recovery flow expires The timestamp when the recovery code expires.
recovery_code: StringRecoveryCode is the code that can be used to recover the account
recovery_link: StringRecoveryLink with flow This link opens the recovery UI with an empty code field.
Implementations§
Source§impl RecoveryCodeForIdentity
impl RecoveryCodeForIdentity
Sourcepub fn new(
recovery_code: String,
recovery_link: String,
) -> RecoveryCodeForIdentity
pub fn new( recovery_code: String, recovery_link: String, ) -> RecoveryCodeForIdentity
Used when an administrator creates a recovery code for an identity.
Trait Implementations§
Source§impl Clone for RecoveryCodeForIdentity
impl Clone for RecoveryCodeForIdentity
Source§fn clone(&self) -> RecoveryCodeForIdentity
fn clone(&self) -> RecoveryCodeForIdentity
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 RecoveryCodeForIdentity
impl Debug for RecoveryCodeForIdentity
Source§impl Default for RecoveryCodeForIdentity
impl Default for RecoveryCodeForIdentity
Source§fn default() -> RecoveryCodeForIdentity
fn default() -> RecoveryCodeForIdentity
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RecoveryCodeForIdentity
impl<'de> Deserialize<'de> for RecoveryCodeForIdentity
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 RecoveryCodeForIdentity
impl PartialEq for RecoveryCodeForIdentity
Source§impl Serialize for RecoveryCodeForIdentity
impl Serialize for RecoveryCodeForIdentity
impl StructuralPartialEq for RecoveryCodeForIdentity
Auto Trait Implementations§
impl Freeze for RecoveryCodeForIdentity
impl RefUnwindSafe for RecoveryCodeForIdentity
impl Send for RecoveryCodeForIdentity
impl Sync for RecoveryCodeForIdentity
impl Unpin for RecoveryCodeForIdentity
impl UnwindSafe for RecoveryCodeForIdentity
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