pub struct MfaEnabledWebhookPayload {
pub method: MfaEnabledWebhookPayloadMethod,
pub type_: MfaEnabledWebhookPayloadType,
pub user_id: String,
}Expand description
Payload for the mfa.enabled webhook event.
JSON schema
{
"title": "MfaEnabledWebhookPayload",
"description": "Payload for the mfa.enabled webhook event.",
"type": "object",
"required": [
"method",
"type",
"user_id"
],
"properties": {
"method": {
"description": "The MFA method that was enabled.",
"type": "string",
"enum": [
"passkey",
"sms",
"totp"
]
},
"type": {
"description": "The type of webhook event.",
"type": "string",
"enum": [
"mfa.enabled"
]
},
"user_id": {
"description": "The ID of the user who enabled MFA.",
"type": "string"
}
},
"x-stainless-model": "webhooks.mfa_enabled_webhook_payload"
}Fields§
§method: MfaEnabledWebhookPayloadMethodThe MFA method that was enabled.
type_: MfaEnabledWebhookPayloadTypeThe type of webhook event.
user_id: StringThe ID of the user who enabled MFA.
Trait Implementations§
Source§impl Clone for MfaEnabledWebhookPayload
impl Clone for MfaEnabledWebhookPayload
Source§fn clone(&self) -> MfaEnabledWebhookPayload
fn clone(&self) -> MfaEnabledWebhookPayload
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 MfaEnabledWebhookPayload
impl Debug for MfaEnabledWebhookPayload
Source§impl<'de> Deserialize<'de> for MfaEnabledWebhookPayload
impl<'de> Deserialize<'de> for MfaEnabledWebhookPayload
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MfaEnabledWebhookPayload, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MfaEnabledWebhookPayload, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&MfaEnabledWebhookPayload> for MfaEnabledWebhookPayload
impl From<&MfaEnabledWebhookPayload> for MfaEnabledWebhookPayload
Source§fn from(value: &MfaEnabledWebhookPayload) -> MfaEnabledWebhookPayload
fn from(value: &MfaEnabledWebhookPayload) -> MfaEnabledWebhookPayload
Converts to this type from the input type.
Source§impl From<MfaEnabledWebhookPayload> for WebhookPayload
impl From<MfaEnabledWebhookPayload> for WebhookPayload
Source§fn from(value: MfaEnabledWebhookPayload) -> WebhookPayload
fn from(value: MfaEnabledWebhookPayload) -> WebhookPayload
Converts to this type from the input type.
Source§impl Serialize for MfaEnabledWebhookPayload
impl Serialize for MfaEnabledWebhookPayload
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for MfaEnabledWebhookPayload
impl RefUnwindSafe for MfaEnabledWebhookPayload
impl Send for MfaEnabledWebhookPayload
impl Sync for MfaEnabledWebhookPayload
impl Unpin for MfaEnabledWebhookPayload
impl UnsafeUnpin for MfaEnabledWebhookPayload
impl UnwindSafe for MfaEnabledWebhookPayload
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