pub struct EthereumYieldClaimResponse {
pub caip2: EvmCaip2ChainId,
pub created_at: f64,
pub id: String,
pub rewards: Vec<EthereumYieldClaimReward>,
pub status: EthereumYieldClaimResponseStatus,
pub updated_at: f64,
}Expand description
Response from a yield reward claim operation.
JSON schema
{
"title": "EthereumYieldClaimResponse",
"description": "Response from a yield reward claim operation.",
"examples": [
{
"caip2": "eip155:8453",
"created_at": 1631573050000,
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"rewards": [
{
"amount": "115631364898103632676",
"token_address": "0x1234567890abcdef1234567890abcdef12345678",
"token_symbol": "MORPHO"
}
],
"status": "pending",
"updated_at": 1631573050000
}
],
"type": "object",
"required": [
"caip2",
"created_at",
"id",
"rewards",
"status",
"updated_at"
],
"properties": {
"caip2": {
"$ref": "#/components/schemas/EvmCaip2ChainId"
},
"created_at": {
"description": "Unix timestamp of when the claim was created, in
milliseconds.",
"type": "number"
},
"id": {
"description": "Privy transaction record ID for the claim
operation.",
"type": "string"
},
"rewards": {
"description": "List of reward tokens claimed.",
"type": "array",
"items": {
"$ref": "#/components/schemas/EthereumYieldClaimReward"
}
},
"status": {
"description": "The current status of the claim transaction.",
"type": "string",
"enum": [
"broadcasted",
"confirmed",
"execution_reverted",
"failed",
"finalized",
"pending",
"provider_error",
"replaced"
]
},
"updated_at": {
"description": "Unix timestamp of when the claim was last updated,
in milliseconds.",
"type": "number"
}
},
"x-stainless-model": "yield.ethereum_yield_claim_response"
}Fields§
§caip2: EvmCaip2ChainId§created_at: f64§id: StringPrivy transaction record ID for the claim operation.
rewards: Vec<EthereumYieldClaimReward>List of reward tokens claimed.
status: EthereumYieldClaimResponseStatusThe current status of the claim transaction.
updated_at: f64Trait Implementations§
Source§impl Clone for EthereumYieldClaimResponse
impl Clone for EthereumYieldClaimResponse
Source§fn clone(&self) -> EthereumYieldClaimResponse
fn clone(&self) -> EthereumYieldClaimResponse
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 Debug for EthereumYieldClaimResponse
impl Debug for EthereumYieldClaimResponse
Source§impl<'de> Deserialize<'de> for EthereumYieldClaimResponse
impl<'de> Deserialize<'de> for EthereumYieldClaimResponse
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EthereumYieldClaimResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EthereumYieldClaimResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&EthereumYieldClaimResponse> for EthereumYieldClaimResponse
impl From<&EthereumYieldClaimResponse> for EthereumYieldClaimResponse
Source§fn from(value: &EthereumYieldClaimResponse) -> EthereumYieldClaimResponse
fn from(value: &EthereumYieldClaimResponse) -> EthereumYieldClaimResponse
Converts to this type from the input type.
Source§impl Serialize for EthereumYieldClaimResponse
impl Serialize for EthereumYieldClaimResponse
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for EthereumYieldClaimResponse
impl RefUnwindSafe for EthereumYieldClaimResponse
impl Send for EthereumYieldClaimResponse
impl Sync for EthereumYieldClaimResponse
impl Unpin for EthereumYieldClaimResponse
impl UnsafeUnpin for EthereumYieldClaimResponse
impl UnwindSafe for EthereumYieldClaimResponse
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