pub struct BalanceAsset {
pub amount: String,
pub price: CurrencyAmount,
pub symbol: String,
}Expand description
A single asset entry in a balance, representing holdings across all supported chains.
JSON schema
{
"title": "BalanceAsset",
"description": "A single asset entry in a balance, representing
holdings across all supported chains.",
"type": "object",
"required": [
"amount",
"price",
"symbol"
],
"properties": {
"amount": {
"description": "The amount of the asset held, denominated in the
unit of the asset itself, with 1 decimal of precision.",
"type": "string"
},
"price": {
"allOf": [
{
"$ref": "#/components/schemas/CurrencyAmount"
},
{
"description": "The price of the asset in the provided
currency."
}
]
},
"symbol": {
"description": "The symbol of the asset (e.g. USDC, ETH).",
"type": "string"
}
},
"x-stainless-model": "accounts.balance_asset"
}Fields§
§amount: StringThe amount of the asset held, denominated in the unit of the asset itself, with 1 decimal of precision.
price: CurrencyAmount§symbol: StringThe symbol of the asset (e.g. USDC, ETH).
Trait Implementations§
Source§impl Clone for BalanceAsset
impl Clone for BalanceAsset
Source§fn clone(&self) -> BalanceAsset
fn clone(&self) -> BalanceAsset
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 BalanceAsset
impl Debug for BalanceAsset
Source§impl<'de> Deserialize<'de> for BalanceAsset
impl<'de> Deserialize<'de> for BalanceAsset
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<&BalanceAsset> for BalanceAsset
impl From<&BalanceAsset> for BalanceAsset
Source§fn from(value: &BalanceAsset) -> Self
fn from(value: &BalanceAsset) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BalanceAsset
impl RefUnwindSafe for BalanceAsset
impl Send for BalanceAsset
impl Sync for BalanceAsset
impl Unpin for BalanceAsset
impl UnsafeUnpin for BalanceAsset
impl UnwindSafe for BalanceAsset
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