pub struct BalanceAssetByChain {
pub amount: String,
pub chain_id: String,
pub price: CurrencyAmount,
pub symbol: String,
}Expand description
A single asset entry scoped to a specific chain.
JSON schema
{
"title": "BalanceAssetByChain",
"description": "A single asset entry scoped to a specific chain.",
"type": "object",
"required": [
"amount",
"chain_id",
"price",
"symbol"
],
"properties": {
"amount": {
"description": "The amount of the asset held on this chain,
denominated in the unit of the asset itself.",
"type": "string"
},
"chain_id": {
"description": "The CAIP-2 chain identifier (e.g. eip155:8453).",
"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_by_chain"
}Fields§
§amount: StringThe amount of the asset held on this chain, denominated in the unit of the asset itself.
chain_id: StringThe CAIP-2 chain identifier (e.g. eip155:8453).
price: CurrencyAmount§symbol: StringThe symbol of the asset (e.g. USDC, ETH).
Trait Implementations§
Source§impl Clone for BalanceAssetByChain
impl Clone for BalanceAssetByChain
Source§fn clone(&self) -> BalanceAssetByChain
fn clone(&self) -> BalanceAssetByChain
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 BalanceAssetByChain
impl Debug for BalanceAssetByChain
Source§impl<'de> Deserialize<'de> for BalanceAssetByChain
impl<'de> Deserialize<'de> for BalanceAssetByChain
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<&BalanceAssetByChain> for BalanceAssetByChain
impl From<&BalanceAssetByChain> for BalanceAssetByChain
Source§fn from(value: &BalanceAssetByChain) -> Self
fn from(value: &BalanceAssetByChain) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BalanceAssetByChain
impl RefUnwindSafe for BalanceAssetByChain
impl Send for BalanceAssetByChain
impl Sync for BalanceAssetByChain
impl Unpin for BalanceAssetByChain
impl UnsafeUnpin for BalanceAssetByChain
impl UnwindSafe for BalanceAssetByChain
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