pub struct WalletActionEarnWithdrawCreatedWebhookPayload {Show 13 fields
pub action_type: WalletActionType,
pub amount: Option<String>,
pub asset: Option<String>,
pub asset_address: String,
pub caip2: String,
pub decimals: Option<i64>,
pub raw_amount: String,
pub status: WalletActionEarnWithdrawCreatedWebhookPayloadStatus,
pub type_: WalletActionEarnWithdrawCreatedWebhookPayloadType,
pub vault_address: String,
pub vault_id: String,
pub wallet_action_id: String,
pub wallet_id: String,
}Expand description
Payload for the wallet_action.earn_withdraw.created webhook event.
JSON schema
{
"title": "WalletActionEarnWithdrawCreatedWebhookPayload",
"description": "Payload for the wallet_action.earn_withdraw.created
webhook event.",
"type": "object",
"required": [
"action_type",
"asset_address",
"caip2",
"raw_amount",
"status",
"type",
"vault_address",
"vault_id",
"wallet_action_id",
"wallet_id"
],
"properties": {
"action_type": {
"$ref": "#/components/schemas/WalletActionType"
},
"amount": {
"description": "Human-readable decimal amount of asset withdrawn
(e.g. \"1.5\"). Only present when the token is known in the asset
registry.",
"type": "string"
},
"asset": {
"description": "Asset identifier (e.g. \"usdc\", \"eth\"). Only
present when the token is known in the asset registry.",
"type": "string"
},
"asset_address": {
"description": "Underlying asset token address.",
"type": "string"
},
"caip2": {
"description": "CAIP-2 chain identifier.",
"type": "string"
},
"decimals": {
"description": "Number of decimals for the underlying asset (e.g. 6
for USDC, 18 for ETH). Only present when the token is known in the asset
registry.",
"type": "integer"
},
"raw_amount": {
"description": "Base-unit amount of asset withdrawn (e.g.
\"1500000\").",
"type": "string"
},
"status": {
"description": "The status of the wallet action.",
"type": "string",
"enum": [
"pending"
]
},
"type": {
"description": "The type of webhook event.",
"type": "string",
"enum": [
"wallet_action.earn_withdraw.created"
]
},
"vault_address": {
"description": "ERC-4626 vault contract address.",
"type": "string"
},
"vault_id": {
"description": "The vault ID.",
"type": "string"
},
"wallet_action_id": {
"description": "The ID of the wallet action.",
"type": "string"
},
"wallet_id": {
"description": "The ID of the wallet involved in the action.",
"type": "string"
}
},
"x-stainless-model":
"webhooks.wallet_action_earn_withdraw_created_webhook_payload"
}Fields§
§action_type: WalletActionType§amount: Option<String>Human-readable decimal amount of asset withdrawn (e.g. “1.5”). Only present when the token is known in the asset registry.
asset: Option<String>Asset identifier (e.g. “usdc”, “eth”). Only present when the token is known in the asset registry.
asset_address: StringUnderlying asset token address.
caip2: StringCAIP-2 chain identifier.
decimals: Option<i64>Number of decimals for the underlying asset (e.g. 6 for USDC, 18 for ETH). Only present when the token is known in the asset registry.
raw_amount: StringBase-unit amount of asset withdrawn (e.g. “1500000”).
status: WalletActionEarnWithdrawCreatedWebhookPayloadStatusThe status of the wallet action.
type_: WalletActionEarnWithdrawCreatedWebhookPayloadTypeThe type of webhook event.
vault_address: StringERC-4626 vault contract address.
vault_id: StringThe vault ID.
wallet_action_id: StringThe ID of the wallet action.
wallet_id: StringThe ID of the wallet involved in the action.
Trait Implementations§
Source§impl Clone for WalletActionEarnWithdrawCreatedWebhookPayload
impl Clone for WalletActionEarnWithdrawCreatedWebhookPayload
Source§fn clone(&self) -> WalletActionEarnWithdrawCreatedWebhookPayload
fn clone(&self) -> WalletActionEarnWithdrawCreatedWebhookPayload
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 WalletActionEarnWithdrawCreatedWebhookPayload
impl<'de> Deserialize<'de> for WalletActionEarnWithdrawCreatedWebhookPayload
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<&WalletActionEarnWithdrawCreatedWebhookPayload> for WalletActionEarnWithdrawCreatedWebhookPayload
impl From<&WalletActionEarnWithdrawCreatedWebhookPayload> for WalletActionEarnWithdrawCreatedWebhookPayload
Source§fn from(value: &WalletActionEarnWithdrawCreatedWebhookPayload) -> Self
fn from(value: &WalletActionEarnWithdrawCreatedWebhookPayload) -> Self
Converts to this type from the input type.
Source§impl From<WalletActionEarnWithdrawCreatedWebhookPayload> for WebhookPayload
impl From<WalletActionEarnWithdrawCreatedWebhookPayload> for WebhookPayload
Source§fn from(value: WalletActionEarnWithdrawCreatedWebhookPayload) -> Self
fn from(value: WalletActionEarnWithdrawCreatedWebhookPayload) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WalletActionEarnWithdrawCreatedWebhookPayload
impl RefUnwindSafe for WalletActionEarnWithdrawCreatedWebhookPayload
impl Send for WalletActionEarnWithdrawCreatedWebhookPayload
impl Sync for WalletActionEarnWithdrawCreatedWebhookPayload
impl Unpin for WalletActionEarnWithdrawCreatedWebhookPayload
impl UnsafeUnpin for WalletActionEarnWithdrawCreatedWebhookPayload
impl UnwindSafe for WalletActionEarnWithdrawCreatedWebhookPayload
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