pub struct MfaMethods {
pub enrollment_prompted_at: Option<DateTime<Utc>>,
pub sms: Option<MfaMethodsSms>,
pub totp: Option<MfaMethodsTotp>,
}Expand description
Information about the end user’s MFA enrollments.
JSON schema
{
"description": "Information about the end user's MFA enrollments.\n",
"examples": [
{
"enrollmentPromptedAt": "2025-01-15T10:30:00Z",
"sms": {
"enrolledAt": "2025-01-15T10:30:00Z"
},
"totp": {
"enrolledAt": "2025-01-15T10:30:00Z"
}
}
],
"type": "object",
"properties": {
"enrollmentPromptedAt": {
"description": "The date and time when the end user was prompted for MFA enrollment, in ISO 8601 format. If the this field exists, and the user has no other enrolled MFA methods, then the user skipped MFA enrollment.",
"examples": [
"2025-01-15T10:30:00Z"
],
"type": "string",
"format": "date-time"
},
"sms": {
"description": "An object containing information about the end user's SMS MFA enrollment.",
"type": "object",
"required": [
"enrolledAt"
],
"properties": {
"enrolledAt": {
"description": "The date and time when the method was enrolled, in ISO 8601 format.",
"examples": [
"2025-01-15T10:30:00Z"
],
"type": "string",
"format": "date-time"
}
}
},
"totp": {
"description": "An object containing information about the end user's TOTP enrollment.",
"type": "object",
"required": [
"enrolledAt"
],
"properties": {
"enrolledAt": {
"description": "The date and time when the method was enrolled, in ISO 8601 format.",
"examples": [
"2025-01-15T10:30:00Z"
],
"type": "string",
"format": "date-time"
}
}
}
},
"x-audience": "public"
}Fields§
§enrollment_prompted_at: Option<DateTime<Utc>>The date and time when the end user was prompted for MFA enrollment, in ISO 8601 format. If the this field exists, and the user has no other enrolled MFA methods, then the user skipped MFA enrollment.
sms: Option<MfaMethodsSms>§totp: Option<MfaMethodsTotp>Implementations§
Source§impl MfaMethods
impl MfaMethods
pub fn builder() -> MfaMethods
Trait Implementations§
Source§impl Clone for MfaMethods
impl Clone for MfaMethods
Source§fn clone(&self) -> MfaMethods
fn clone(&self) -> MfaMethods
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 MfaMethods
impl Debug for MfaMethods
Source§impl Default for MfaMethods
impl Default for MfaMethods
Source§impl<'de> Deserialize<'de> for MfaMethods
impl<'de> Deserialize<'de> for MfaMethods
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 From<&MfaMethods> for MfaMethods
impl From<&MfaMethods> for MfaMethods
Source§fn from(value: &MfaMethods) -> Self
fn from(value: &MfaMethods) -> Self
Converts to this type from the input type.
Source§impl From<MfaMethods> for MfaMethods
impl From<MfaMethods> for MfaMethods
Source§fn from(value: MfaMethods) -> Self
fn from(value: MfaMethods) -> Self
Converts to this type from the input type.
Source§impl Serialize for MfaMethods
impl Serialize for MfaMethods
Source§impl TryFrom<MfaMethods> for MfaMethods
impl TryFrom<MfaMethods> for MfaMethods
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: MfaMethods) -> Result<Self, ConversionError>
fn try_from(value: MfaMethods) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for MfaMethods
impl RefUnwindSafe for MfaMethods
impl Send for MfaMethods
impl Sync for MfaMethods
impl Unpin for MfaMethods
impl UnsafeUnpin for MfaMethods
impl UnwindSafe for MfaMethods
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