pub struct EarnIncentiveClaimActionResponse {
pub chain: String,
pub created_at: DateTime<Utc>,
pub failure_reason: Option<FailureReason>,
pub id: String,
pub rewards: Vec<EarnIncetiveClaimRewardEntry>,
pub status: WalletActionStatus,
pub steps: Vec<WalletActionStep>,
pub type_: EarnIncentiveClaimActionResponseType,
pub wallet_id: String,
}Expand description
Response for an earn incentive claim action.
JSON schema
{
"title": "EarnIncentiveClaimActionResponse",
"description": "Response for an earn incentive claim action.",
"type": "object",
"required": [
"chain",
"created_at",
"id",
"status",
"type",
"wallet_id"
],
"properties": {
"chain": {
"description": "EVM chain name (e.g. \"base\", \"ethereum\").",
"type": "string"
},
"created_at": {
"description": "ISO 8601 timestamp of when the wallet action was
created.",
"type": "string",
"format": "date-time"
},
"failure_reason": {
"allOf": [
{
"$ref": "#/components/schemas/FailureReason"
},
{
"description": "Top-level failure context for the wallet
action. Present on rejected or failed actions when available."
}
]
},
"id": {
"description": "The ID of the wallet action.",
"type": "string"
},
"rewards": {
"description": "Claimed reward tokens. Populated after the
preparation step fetches from Merkl.",
"type": "array",
"items": {
"$ref": "#/components/schemas/EarnIncetiveClaimRewardEntry"
}
},
"status": {
"allOf": [
{
"$ref": "#/components/schemas/WalletActionStatus"
},
{
"description": "The current status of the wallet action."
}
]
},
"steps": {
"description": "The steps of the wallet action. Only returned if
`?include=steps` is provided.",
"type": "array",
"items": {
"$ref": "#/components/schemas/WalletActionStep"
}
},
"type": {
"type": "string",
"enum": [
"earn_incentive_claim"
]
},
"wallet_id": {
"description": "The ID of the wallet involved in the action.",
"type": "string"
}
},
"x-stainless-model":
"wallet_actions.earn_incentive_claim_action_response"
}Fields§
§chain: StringEVM chain name (e.g. “base”, “ethereum”).
created_at: DateTime<Utc>ISO 8601 timestamp of when the wallet action was created.
failure_reason: Option<FailureReason>§id: StringThe ID of the wallet action.
rewards: Vec<EarnIncetiveClaimRewardEntry>Claimed reward tokens. Populated after the preparation step fetches from Merkl.
status: WalletActionStatus§steps: Vec<WalletActionStep>The steps of the wallet action. Only returned if ?include=steps is
provided.
type_: EarnIncentiveClaimActionResponseType§wallet_id: StringThe ID of the wallet involved in the action.
Trait Implementations§
Source§impl Clone for EarnIncentiveClaimActionResponse
impl Clone for EarnIncentiveClaimActionResponse
Source§fn clone(&self) -> EarnIncentiveClaimActionResponse
fn clone(&self) -> EarnIncentiveClaimActionResponse
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 EarnIncentiveClaimActionResponse
impl<'de> Deserialize<'de> for EarnIncentiveClaimActionResponse
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<&EarnIncentiveClaimActionResponse> for EarnIncentiveClaimActionResponse
impl From<&EarnIncentiveClaimActionResponse> for EarnIncentiveClaimActionResponse
Source§fn from(value: &EarnIncentiveClaimActionResponse) -> Self
fn from(value: &EarnIncentiveClaimActionResponse) -> Self
Converts to this type from the input type.
Source§impl From<EarnIncentiveClaimActionResponse> for WalletActionResponse
impl From<EarnIncentiveClaimActionResponse> for WalletActionResponse
Source§fn from(value: EarnIncentiveClaimActionResponse) -> Self
fn from(value: EarnIncentiveClaimActionResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EarnIncentiveClaimActionResponse
impl RefUnwindSafe for EarnIncentiveClaimActionResponse
impl Send for EarnIncentiveClaimActionResponse
impl Sync for EarnIncentiveClaimActionResponse
impl Unpin for EarnIncentiveClaimActionResponse
impl UnsafeUnpin for EarnIncentiveClaimActionResponse
impl UnwindSafe for EarnIncentiveClaimActionResponse
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