pub struct WalletActionSwapSucceededWebhookPayload {
pub action_type: WalletActionType,
pub caip2: String,
pub input_amount: Option<String>,
pub input_token: String,
pub output_amount: Option<String>,
pub output_token: String,
pub status: WalletActionSwapSucceededWebhookPayloadStatus,
pub steps: Vec<WalletActionStep>,
pub type_: WalletActionSwapSucceededWebhookPayloadType,
pub wallet_action_id: String,
pub wallet_id: String,
}Expand description
Payload for the wallet_action.swap.succeeded webhook event.
JSON schema
{
"title": "WalletActionSwapSucceededWebhookPayload",
"description": "Payload for the wallet_action.swap.succeeded webhook
event.",
"type": "object",
"required": [
"action_type",
"caip2",
"input_token",
"output_token",
"status",
"steps",
"type",
"wallet_action_id",
"wallet_id"
],
"properties": {
"action_type": {
"$ref": "#/components/schemas/WalletActionType"
},
"caip2": {
"description": "Chain identifier.",
"type": "string"
},
"input_amount": {
"description": "Amount of input token in base units. Populated
after on-chain confirmation.",
"type": "string"
},
"input_token": {
"description": "Token address being sold.",
"type": "string"
},
"output_amount": {
"description": "Amount of output token received, in base units.
Populated after on-chain confirmation.",
"type": "string"
},
"output_token": {
"description": "Token address being bought.",
"type": "string"
},
"status": {
"description": "The status of the wallet action.",
"type": "string",
"enum": [
"succeeded"
]
},
"steps": {
"description": "The steps of the wallet action, including
transaction hashes.",
"type": "array",
"items": {
"$ref": "#/components/schemas/WalletActionStep"
}
},
"type": {
"description": "The type of webhook event.",
"type": "string",
"enum": [
"wallet_action.swap.succeeded"
]
},
"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_swap_succeeded_webhook_payload"
}Fields§
§action_type: WalletActionType§caip2: StringChain identifier.
input_amount: Option<String>Amount of input token in base units. Populated after on-chain confirmation.
input_token: StringToken address being sold.
output_amount: Option<String>Amount of output token received, in base units. Populated after on-chain confirmation.
output_token: StringToken address being bought.
status: WalletActionSwapSucceededWebhookPayloadStatusThe status of the wallet action.
steps: Vec<WalletActionStep>The steps of the wallet action, including transaction hashes.
type_: WalletActionSwapSucceededWebhookPayloadTypeThe type of webhook event.
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 WalletActionSwapSucceededWebhookPayload
impl Clone for WalletActionSwapSucceededWebhookPayload
Source§fn clone(&self) -> WalletActionSwapSucceededWebhookPayload
fn clone(&self) -> WalletActionSwapSucceededWebhookPayload
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 WalletActionSwapSucceededWebhookPayload
impl<'de> Deserialize<'de> for WalletActionSwapSucceededWebhookPayload
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<&WalletActionSwapSucceededWebhookPayload> for WalletActionSwapSucceededWebhookPayload
impl From<&WalletActionSwapSucceededWebhookPayload> for WalletActionSwapSucceededWebhookPayload
Source§fn from(value: &WalletActionSwapSucceededWebhookPayload) -> Self
fn from(value: &WalletActionSwapSucceededWebhookPayload) -> Self
Converts to this type from the input type.
Source§impl From<WalletActionSwapSucceededWebhookPayload> for WebhookPayload
impl From<WalletActionSwapSucceededWebhookPayload> for WebhookPayload
Source§fn from(value: WalletActionSwapSucceededWebhookPayload) -> Self
fn from(value: WalletActionSwapSucceededWebhookPayload) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WalletActionSwapSucceededWebhookPayload
impl RefUnwindSafe for WalletActionSwapSucceededWebhookPayload
impl Send for WalletActionSwapSucceededWebhookPayload
impl Sync for WalletActionSwapSucceededWebhookPayload
impl Unpin for WalletActionSwapSucceededWebhookPayload
impl UnsafeUnpin for WalletActionSwapSucceededWebhookPayload
impl UnwindSafe for WalletActionSwapSucceededWebhookPayload
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