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 link expires.
recovery_code: String
RecoveryCode is the code that can be used to recover the account
recovery_link: String
RecoveryLink 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 copy 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<'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<RecoveryCodeForIdentity> for RecoveryCodeForIdentity
impl PartialEq<RecoveryCodeForIdentity> for RecoveryCodeForIdentity
source§fn eq(&self, other: &RecoveryCodeForIdentity) -> bool
fn eq(&self, other: &RecoveryCodeForIdentity) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.