pub struct PrivateKeyExportWebhookPayload {
pub export_source: Option<PrivateKeyExportWebhookPayloadExportSource>,
pub type_: PrivateKeyExportWebhookPayloadType,
pub user_id: String,
pub wallet_address: String,
pub wallet_id: String,
}Expand description
Payload for the wallet.private_key_export webhook event.
JSON schema
{
"title": "PrivateKeyExportWebhookPayload",
"description": "Payload for the wallet.private_key_export webhook
event.",
"type": "object",
"required": [
"type",
"user_id",
"wallet_address",
"wallet_id"
],
"properties": {
"export_source": {
"type": "string",
"enum": [
"client",
"display"
]
},
"type": {
"description": "The type of webhook event.",
"type": "string",
"enum": [
"wallet.private_key_export"
]
},
"user_id": {
"description": "The ID of the user who exported the key.",
"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.private_key_export_webhook_payload"
}Fields§
§export_source: Option<PrivateKeyExportWebhookPayloadExportSource>§type_: PrivateKeyExportWebhookPayloadTypeThe type of webhook event.
user_id: StringThe ID of the user who exported the key.
wallet_address: StringThe address of the wallet.
wallet_id: StringThe ID of the wallet.
Trait Implementations§
Source§impl Clone for PrivateKeyExportWebhookPayload
impl Clone for PrivateKeyExportWebhookPayload
Source§fn clone(&self) -> PrivateKeyExportWebhookPayload
fn clone(&self) -> PrivateKeyExportWebhookPayload
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 PrivateKeyExportWebhookPayload
impl<'de> Deserialize<'de> for PrivateKeyExportWebhookPayload
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PrivateKeyExportWebhookPayload, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PrivateKeyExportWebhookPayload, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&PrivateKeyExportWebhookPayload> for PrivateKeyExportWebhookPayload
impl From<&PrivateKeyExportWebhookPayload> for PrivateKeyExportWebhookPayload
Source§fn from(
value: &PrivateKeyExportWebhookPayload,
) -> PrivateKeyExportWebhookPayload
fn from( value: &PrivateKeyExportWebhookPayload, ) -> PrivateKeyExportWebhookPayload
Converts to this type from the input type.
Source§impl From<PrivateKeyExportWebhookPayload> for WebhookPayload
impl From<PrivateKeyExportWebhookPayload> for WebhookPayload
Source§fn from(value: PrivateKeyExportWebhookPayload) -> WebhookPayload
fn from(value: PrivateKeyExportWebhookPayload) -> WebhookPayload
Converts to this type from the input type.
Source§impl Serialize for PrivateKeyExportWebhookPayload
impl Serialize for PrivateKeyExportWebhookPayload
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 PrivateKeyExportWebhookPayload
impl RefUnwindSafe for PrivateKeyExportWebhookPayload
impl Send for PrivateKeyExportWebhookPayload
impl Sync for PrivateKeyExportWebhookPayload
impl Unpin for PrivateKeyExportWebhookPayload
impl UnsafeUnpin for PrivateKeyExportWebhookPayload
impl UnwindSafe for PrivateKeyExportWebhookPayload
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