pub struct MfaDisabledWebhookPayload {
pub method: MfaDisabledWebhookPayloadMethod,
pub type_: MfaDisabledWebhookPayloadType,
pub user_id: String,
}Expand description
Payload for the mfa.disabled webhook event.
JSON schema
{
"title": "MfaDisabledWebhookPayload",
"description": "Payload for the mfa.disabled webhook event.",
"type": "object",
"required": [
"method",
"type",
"user_id"
],
"properties": {
"method": {
"description": "The MFA method that was disabled.",
"type": "string",
"enum": [
"passkey",
"sms",
"totp"
]
},
"type": {
"description": "The type of webhook event.",
"type": "string",
"enum": [
"mfa.disabled"
]
},
"user_id": {
"description": "The ID of the user who disabled MFA.",
"type": "string"
}
},
"x-stainless-model": "webhooks.mfa_disabled_webhook_payload"
}Fields§
§method: MfaDisabledWebhookPayloadMethodThe MFA method that was disabled.
type_: MfaDisabledWebhookPayloadTypeThe type of webhook event.
user_id: StringThe ID of the user who disabled MFA.
Trait Implementations§
Source§impl Clone for MfaDisabledWebhookPayload
impl Clone for MfaDisabledWebhookPayload
Source§fn clone(&self) -> MfaDisabledWebhookPayload
fn clone(&self) -> MfaDisabledWebhookPayload
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MfaDisabledWebhookPayload
impl Debug for MfaDisabledWebhookPayload
Source§impl<'de> Deserialize<'de> for MfaDisabledWebhookPayload
impl<'de> Deserialize<'de> for MfaDisabledWebhookPayload
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<&MfaDisabledWebhookPayload> for MfaDisabledWebhookPayload
impl From<&MfaDisabledWebhookPayload> for MfaDisabledWebhookPayload
Source§fn from(value: &MfaDisabledWebhookPayload) -> Self
fn from(value: &MfaDisabledWebhookPayload) -> Self
Converts to this type from the input type.
Source§impl From<MfaDisabledWebhookPayload> for WebhookPayload
impl From<MfaDisabledWebhookPayload> for WebhookPayload
Source§fn from(value: MfaDisabledWebhookPayload) -> Self
fn from(value: MfaDisabledWebhookPayload) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MfaDisabledWebhookPayload
impl RefUnwindSafe for MfaDisabledWebhookPayload
impl Send for MfaDisabledWebhookPayload
impl Sync for MfaDisabledWebhookPayload
impl Unpin for MfaDisabledWebhookPayload
impl UnsafeUnpin for MfaDisabledWebhookPayload
impl UnwindSafe for MfaDisabledWebhookPayload
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