pub struct WalletActionEarnDepositCreatedWebhookPayload {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: WalletActionEarnDepositCreatedWebhookPayloadStatus,
pub type_: WalletActionEarnDepositCreatedWebhookPayloadType,
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_deposit.created webhook event.
JSON schema
{
"title": "WalletActionEarnDepositCreatedWebhookPayload",
"description": "Payload for the wallet_action.earn_deposit.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 deposited
(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 deposited (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_deposit.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_deposit_created_webhook_payload"
}Fields§
§action_type: WalletActionType§amount: Option<String>Human-readable decimal amount of asset deposited (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 deposited (e.g. “1500000”).
status: WalletActionEarnDepositCreatedWebhookPayloadStatusThe status of the wallet action.
type_: WalletActionEarnDepositCreatedWebhookPayloadTypeThe 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 WalletActionEarnDepositCreatedWebhookPayload
impl Clone for WalletActionEarnDepositCreatedWebhookPayload
Source§fn clone(&self) -> WalletActionEarnDepositCreatedWebhookPayload
fn clone(&self) -> WalletActionEarnDepositCreatedWebhookPayload
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 WalletActionEarnDepositCreatedWebhookPayload
impl<'de> Deserialize<'de> for WalletActionEarnDepositCreatedWebhookPayload
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<&WalletActionEarnDepositCreatedWebhookPayload> for WalletActionEarnDepositCreatedWebhookPayload
impl From<&WalletActionEarnDepositCreatedWebhookPayload> for WalletActionEarnDepositCreatedWebhookPayload
Source§fn from(value: &WalletActionEarnDepositCreatedWebhookPayload) -> Self
fn from(value: &WalletActionEarnDepositCreatedWebhookPayload) -> Self
Converts to this type from the input type.
Source§impl From<WalletActionEarnDepositCreatedWebhookPayload> for WebhookPayload
impl From<WalletActionEarnDepositCreatedWebhookPayload> for WebhookPayload
Source§fn from(value: WalletActionEarnDepositCreatedWebhookPayload) -> Self
fn from(value: WalletActionEarnDepositCreatedWebhookPayload) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WalletActionEarnDepositCreatedWebhookPayload
impl RefUnwindSafe for WalletActionEarnDepositCreatedWebhookPayload
impl Send for WalletActionEarnDepositCreatedWebhookPayload
impl Sync for WalletActionEarnDepositCreatedWebhookPayload
impl Unpin for WalletActionEarnDepositCreatedWebhookPayload
impl UnsafeUnpin for WalletActionEarnDepositCreatedWebhookPayload
impl UnwindSafe for WalletActionEarnDepositCreatedWebhookPayload
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