pub struct EarnIncentiveRewardEntry {
pub amount_claimed: EarnIncentiveRewardEntryAmountClaimed,
pub amount_unclaimed: EarnIncentiveRewardEntryAmountUnclaimed,
pub token_address: String,
pub token_decimals: Option<i64>,
pub token_symbol: String,
}Expand description
A reward token with claimed and unclaimed amounts.
JSON schema
{
"title": "EarnIncentiveRewardEntry",
"description": "A reward token with claimed and unclaimed amounts.",
"examples": [
{
"amount_claimed": "1000000000000000000",
"amount_unclaimed": "500000000000000000",
"token_address": "0x0000000000000000000000000000000000000000",
"token_decimals": 18,
"token_symbol": "MORPHO"
}
],
"type": "object",
"required": [
"amount_claimed",
"amount_unclaimed",
"token_address",
"token_symbol"
],
"properties": {
"amount_claimed": {
"description": "Total amount already claimed, in smallest unit.",
"type": "string",
"maxLength": 78,
"minLength": 1,
"pattern": "^\\d+$"
},
"amount_unclaimed": {
"description": "Amount available to claim on-chain but not yet
claimed, in smallest unit.",
"type": "string",
"maxLength": 78,
"minLength": 1,
"pattern": "^\\d+$"
},
"token_address": {
"description": "Address of the reward token.",
"type": "string"
},
"token_decimals": {
"description": "Number of decimals for the reward token.",
"type": "integer"
},
"token_symbol": {
"description": "Symbol of the reward token (e.g. \"MORPHO\").",
"type": "string"
}
},
"x-stainless-model": "wallet_actions.earn_incentive_reward_entry"
}Fields§
§amount_claimed: EarnIncentiveRewardEntryAmountClaimedTotal amount already claimed, in smallest unit.
amount_unclaimed: EarnIncentiveRewardEntryAmountUnclaimedAmount available to claim on-chain but not yet claimed, in smallest unit.
token_address: StringAddress of the reward token.
token_decimals: Option<i64>Number of decimals for the reward token.
token_symbol: StringSymbol of the reward token (e.g. “MORPHO”).
Trait Implementations§
Source§impl Clone for EarnIncentiveRewardEntry
impl Clone for EarnIncentiveRewardEntry
Source§fn clone(&self) -> EarnIncentiveRewardEntry
fn clone(&self) -> EarnIncentiveRewardEntry
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 EarnIncentiveRewardEntry
impl Debug for EarnIncentiveRewardEntry
Source§impl<'de> Deserialize<'de> for EarnIncentiveRewardEntry
impl<'de> Deserialize<'de> for EarnIncentiveRewardEntry
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<&EarnIncentiveRewardEntry> for EarnIncentiveRewardEntry
impl From<&EarnIncentiveRewardEntry> for EarnIncentiveRewardEntry
Source§fn from(value: &EarnIncentiveRewardEntry) -> Self
fn from(value: &EarnIncentiveRewardEntry) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EarnIncentiveRewardEntry
impl RefUnwindSafe for EarnIncentiveRewardEntry
impl Send for EarnIncentiveRewardEntry
impl Sync for EarnIncentiveRewardEntry
impl Unpin for EarnIncentiveRewardEntry
impl UnsafeUnpin for EarnIncentiveRewardEntry
impl UnwindSafe for EarnIncentiveRewardEntry
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