pub struct EarnIncentiveRewardsResponse {
pub rewards: Vec<EarnIncentiveRewardEntry>,
}Expand description
All incentive rewards for a wallet, with claimed and unclaimed amounts per token.
JSON schema
{
"title": "EarnIncentiveRewardsResponse",
"description": "All incentive rewards for a wallet, with claimed and
unclaimed amounts per token.",
"examples": [
{
"rewards": [
{
"amount_claimed": "1000000000000000000",
"amount_unclaimed": "500000000000000000",
"token_address": "0x0000000000000000000000000000000000000000",
"token_decimals": 18,
"token_symbol": "MORPHO"
}
]
}
],
"type": "object",
"required": [
"rewards"
],
"properties": {
"rewards": {
"description": "Reward tokens with their claimed and unclaimed
amounts.",
"type": "array",
"items": {
"$ref": "#/components/schemas/EarnIncentiveRewardEntry"
}
}
},
"x-stainless-model": "wallet_actions.earn_incentive_rewards_response"
}Fields§
§rewards: Vec<EarnIncentiveRewardEntry>Reward tokens with their claimed and unclaimed amounts.
Trait Implementations§
Source§impl Clone for EarnIncentiveRewardsResponse
impl Clone for EarnIncentiveRewardsResponse
Source§fn clone(&self) -> EarnIncentiveRewardsResponse
fn clone(&self) -> EarnIncentiveRewardsResponse
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 EarnIncentiveRewardsResponse
impl Debug for EarnIncentiveRewardsResponse
Source§impl<'de> Deserialize<'de> for EarnIncentiveRewardsResponse
impl<'de> Deserialize<'de> for EarnIncentiveRewardsResponse
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<&EarnIncentiveRewardsResponse> for EarnIncentiveRewardsResponse
impl From<&EarnIncentiveRewardsResponse> for EarnIncentiveRewardsResponse
Source§fn from(value: &EarnIncentiveRewardsResponse) -> Self
fn from(value: &EarnIncentiveRewardsResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EarnIncentiveRewardsResponse
impl RefUnwindSafe for EarnIncentiveRewardsResponse
impl Send for EarnIncentiveRewardsResponse
impl Sync for EarnIncentiveRewardsResponse
impl Unpin for EarnIncentiveRewardsResponse
impl UnsafeUnpin for EarnIncentiveRewardsResponse
impl UnwindSafe for EarnIncentiveRewardsResponse
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