pub struct WalletRecoverySetupWebhookPayload {
pub method: WalletRecoverySetupWebhookPayloadMethod,
pub type_: WalletRecoverySetupWebhookPayloadType,
pub user_id: String,
pub wallet_address: String,
pub wallet_id: String,
}Expand description
Payload for the wallet.recovery_setup webhook event.
JSON schema
{
"title": "WalletRecoverySetupWebhookPayload",
"description": "Payload for the wallet.recovery_setup webhook event.",
"type": "object",
"required": [
"method",
"type",
"user_id",
"wallet_address",
"wallet_id"
],
"properties": {
"method": {
"description": "The recovery method that was set up.",
"type": "string",
"enum": [
"google_drive_recovery_secret",
"icloud_recovery_secret",
"privy_generated_recovery_key",
"privy_passcode_derived_recovery_key",
"recovery_encryption_key",
"user_passcode_derived_recovery_key"
]
},
"type": {
"description": "The type of webhook event.",
"type": "string",
"enum": [
"wallet.recovery_setup"
]
},
"user_id": {
"description": "The ID of the user.",
"type": "string"
},
"wallet_address": {
"description": "The address of the wallet.",
"type": "string"
},
"wallet_id": {
"description": "The ID of the wallet.",
"type": "string"
}
},
"x-stainless-model": "webhooks.wallet_recovery_setup_webhook_payload"
}Fields§
§method: WalletRecoverySetupWebhookPayloadMethodThe recovery method that was set up.
type_: WalletRecoverySetupWebhookPayloadTypeThe type of webhook event.
user_id: StringThe ID of the user.
wallet_address: StringThe address of the wallet.
wallet_id: StringThe ID of the wallet.
Trait Implementations§
Source§impl Clone for WalletRecoverySetupWebhookPayload
impl Clone for WalletRecoverySetupWebhookPayload
Source§fn clone(&self) -> WalletRecoverySetupWebhookPayload
fn clone(&self) -> WalletRecoverySetupWebhookPayload
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<'de> Deserialize<'de> for WalletRecoverySetupWebhookPayload
impl<'de> Deserialize<'de> for WalletRecoverySetupWebhookPayload
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<&WalletRecoverySetupWebhookPayload> for WalletRecoverySetupWebhookPayload
impl From<&WalletRecoverySetupWebhookPayload> for WalletRecoverySetupWebhookPayload
Source§fn from(value: &WalletRecoverySetupWebhookPayload) -> Self
fn from(value: &WalletRecoverySetupWebhookPayload) -> Self
Converts to this type from the input type.
Source§impl From<WalletRecoverySetupWebhookPayload> for WebhookPayload
impl From<WalletRecoverySetupWebhookPayload> for WebhookPayload
Source§fn from(value: WalletRecoverySetupWebhookPayload) -> Self
fn from(value: WalletRecoverySetupWebhookPayload) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WalletRecoverySetupWebhookPayload
impl RefUnwindSafe for WalletRecoverySetupWebhookPayload
impl Send for WalletRecoverySetupWebhookPayload
impl Sync for WalletRecoverySetupWebhookPayload
impl Unpin for WalletRecoverySetupWebhookPayload
impl UnsafeUnpin for WalletRecoverySetupWebhookPayload
impl UnwindSafe for WalletRecoverySetupWebhookPayload
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