pub struct FundsWithdrawnWebhookPayload {
pub amount: String,
pub asset: WalletFundsAsset,
pub block: FundsWithdrawnWebhookPayloadBlock,
pub caip2: String,
pub idempotency_key: String,
pub recipient: String,
pub sender: String,
pub transaction_fee: Option<String>,
pub transaction_hash: String,
pub type_: FundsWithdrawnWebhookPayloadType,
pub wallet_id: String,
}Expand description
Payload for the wallet.funds_withdrawn webhook event.
JSON schema
{
"title": "FundsWithdrawnWebhookPayload",
"description": "Payload for the wallet.funds_withdrawn webhook event.",
"type": "object",
"required": [
"amount",
"asset",
"block",
"caip2",
"idempotency_key",
"recipient",
"sender",
"transaction_hash",
"type",
"wallet_id"
],
"properties": {
"amount": {
"description": "The amount transferred, as a stringified bigint.",
"type": "string"
},
"asset": {
"allOf": [
{
"$ref": "#/components/schemas/WalletFundsAsset"
},
{
"description": "The asset type being transferred."
}
]
},
"block": {
"type": "object",
"required": [
"number",
"timestamp"
],
"properties": {
"number": {
"description": "The block number.",
"type": "number"
},
"timestamp": {
"description": "The block timestamp.",
"type": "number"
}
}
},
"caip2": {
"description": "The CAIP-2 chain identifier.",
"type": "string"
},
"idempotency_key": {
"description": "A unique key for this event.",
"type": "string"
},
"recipient": {
"description": "The recipient address.",
"type": "string"
},
"sender": {
"description": "The sender address.",
"type": "string"
},
"transaction_fee": {
"description": "The transaction fee paid, as a stringified bigint
in the chain's native token.",
"type": "string"
},
"transaction_hash": {
"description": "The blockchain transaction hash.",
"type": "string"
},
"type": {
"description": "The type of webhook event.",
"type": "string",
"enum": [
"wallet.funds_withdrawn"
]
},
"wallet_id": {
"description": "The ID of the wallet.",
"type": "string"
}
},
"x-stainless-model": "webhooks.funds_withdrawn_webhook_payload"
}Fields§
§amount: StringThe amount transferred, as a stringified bigint.
asset: WalletFundsAsset§block: FundsWithdrawnWebhookPayloadBlock§caip2: StringThe CAIP-2 chain identifier.
idempotency_key: StringA unique key for this event.
recipient: StringThe recipient address.
sender: StringThe sender address.
transaction_fee: Option<String>The transaction fee paid, as a stringified bigint in the chain’s native token.
transaction_hash: StringThe blockchain transaction hash.
type_: FundsWithdrawnWebhookPayloadTypeThe type of webhook event.
wallet_id: StringThe ID of the wallet.
Trait Implementations§
Source§impl Clone for FundsWithdrawnWebhookPayload
impl Clone for FundsWithdrawnWebhookPayload
Source§fn clone(&self) -> FundsWithdrawnWebhookPayload
fn clone(&self) -> FundsWithdrawnWebhookPayload
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 FundsWithdrawnWebhookPayload
impl Debug for FundsWithdrawnWebhookPayload
Source§impl<'de> Deserialize<'de> for FundsWithdrawnWebhookPayload
impl<'de> Deserialize<'de> for FundsWithdrawnWebhookPayload
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<&FundsWithdrawnWebhookPayload> for FundsWithdrawnWebhookPayload
impl From<&FundsWithdrawnWebhookPayload> for FundsWithdrawnWebhookPayload
Source§fn from(value: &FundsWithdrawnWebhookPayload) -> Self
fn from(value: &FundsWithdrawnWebhookPayload) -> Self
Converts to this type from the input type.
Source§impl From<FundsWithdrawnWebhookPayload> for WebhookPayload
impl From<FundsWithdrawnWebhookPayload> for WebhookPayload
Source§fn from(value: FundsWithdrawnWebhookPayload) -> Self
fn from(value: FundsWithdrawnWebhookPayload) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FundsWithdrawnWebhookPayload
impl RefUnwindSafe for FundsWithdrawnWebhookPayload
impl Send for FundsWithdrawnWebhookPayload
impl Sync for FundsWithdrawnWebhookPayload
impl Unpin for FundsWithdrawnWebhookPayload
impl UnsafeUnpin for FundsWithdrawnWebhookPayload
impl UnwindSafe for FundsWithdrawnWebhookPayload
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