pub struct YieldClaimConfirmedWebhookPayload {
pub caip2: String,
pub rewards: Vec<YieldClaimConfirmedWebhookPayloadRewardsItem>,
pub transaction_id: String,
pub type_: YieldClaimConfirmedWebhookPayloadType,
pub wallet_id: String,
}Expand description
Payload for the yield.claim.confirmed webhook event.
JSON schema
{
"title": "YieldClaimConfirmedWebhookPayload",
"description": "Payload for the yield.claim.confirmed webhook event.",
"type": "object",
"required": [
"caip2",
"rewards",
"transaction_id",
"type",
"wallet_id"
],
"properties": {
"caip2": {
"type": "string"
},
"rewards": {
"type": "array",
"items": {
"type": "object",
"required": [
"amount",
"token_address",
"token_symbol"
],
"properties": {
"amount": {
"type": "string"
},
"token_address": {
"type": "string"
},
"token_symbol": {
"type": "string"
}
}
}
},
"transaction_id": {
"type": "string"
},
"type": {
"description": "The type of webhook event.",
"type": "string",
"enum": [
"yield.claim.confirmed"
]
},
"wallet_id": {
"type": "string"
}
},
"x-stainless-model": "webhooks.yield_claim_confirmed_webhook_payload"
}Fields§
§caip2: String§rewards: Vec<YieldClaimConfirmedWebhookPayloadRewardsItem>§transaction_id: String§type_: YieldClaimConfirmedWebhookPayloadTypeThe type of webhook event.
wallet_id: StringTrait Implementations§
Source§impl Clone for YieldClaimConfirmedWebhookPayload
impl Clone for YieldClaimConfirmedWebhookPayload
Source§fn clone(&self) -> YieldClaimConfirmedWebhookPayload
fn clone(&self) -> YieldClaimConfirmedWebhookPayload
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 YieldClaimConfirmedWebhookPayload
impl<'de> Deserialize<'de> for YieldClaimConfirmedWebhookPayload
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<&YieldClaimConfirmedWebhookPayload> for YieldClaimConfirmedWebhookPayload
impl From<&YieldClaimConfirmedWebhookPayload> for YieldClaimConfirmedWebhookPayload
Source§fn from(value: &YieldClaimConfirmedWebhookPayload) -> Self
fn from(value: &YieldClaimConfirmedWebhookPayload) -> Self
Converts to this type from the input type.
Source§impl From<YieldClaimConfirmedWebhookPayload> for WebhookPayload
impl From<YieldClaimConfirmedWebhookPayload> for WebhookPayload
Source§fn from(value: YieldClaimConfirmedWebhookPayload) -> Self
fn from(value: YieldClaimConfirmedWebhookPayload) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for YieldClaimConfirmedWebhookPayload
impl RefUnwindSafe for YieldClaimConfirmedWebhookPayload
impl Send for YieldClaimConfirmedWebhookPayload
impl Sync for YieldClaimConfirmedWebhookPayload
impl Unpin for YieldClaimConfirmedWebhookPayload
impl UnsafeUnpin for YieldClaimConfirmedWebhookPayload
impl UnwindSafe for YieldClaimConfirmedWebhookPayload
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