pub struct EarnAsset {
pub address: String,
pub decimals: i64,
pub symbol: String,
}Expand description
Asset metadata for an earn vault position.
JSON schema
{
"title": "EarnAsset",
"description": "Asset metadata for an earn vault position.",
"examples": [
{
"address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"decimals": 6,
"symbol": "usdc"
}
],
"type": "object",
"required": [
"address",
"decimals",
"symbol"
],
"properties": {
"address": {
"description": "Token contract address.",
"type": "string"
},
"decimals": {
"description": "Number of decimals for the asset (e.g. 6 for
USDC).",
"type": "integer"
},
"symbol": {
"description": "Lowercase token symbol (e.g. \"usdc\").",
"type": "string"
}
},
"x-stainless-model": "wallet_actions.earn_asset"
}Fields§
§address: StringToken contract address.
decimals: i64Number of decimals for the asset (e.g. 6 for USDC).
symbol: StringLowercase token symbol (e.g. “usdc”).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EarnAsset
impl<'de> Deserialize<'de> for EarnAsset
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
Auto Trait Implementations§
impl Freeze for EarnAsset
impl RefUnwindSafe for EarnAsset
impl Send for EarnAsset
impl Sync for EarnAsset
impl Unpin for EarnAsset
impl UnsafeUnpin for EarnAsset
impl UnwindSafe for EarnAsset
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