pub struct Balances {
pub balances: Vec<Balance>,
}Expand description
A list of balances for an account.
JSON schema
{
"description": "A list of balances for an account.",
"examples": [
{
"balances": [
{
"amount": {
"btc": {
"available": "2.5",
"total": "3.0"
},
"usd": {
"available": "252705.4",
"total": "303246.48"
}
},
"asset": {
"decimals": 8,
"name": "Bitcoin",
"symbol": "btc",
"type": "crypto"
}
},
{
"amount": {
"usd": {
"available": "90",
"total": "100"
}
},
"asset": {
"decimals": 2,
"name": "United States Dollar",
"symbol": "usd",
"type": "fiat"
}
}
]
}
],
"type": "object",
"required": [
"balances"
],
"properties": {
"balances": {
"description": "The list of balances.",
"examples": [
[
{
"amount": {
"btc": {
"available": "2.5",
"total": "3.0"
},
"usd": {
"available": "252705.4",
"total": "303246.48"
}
},
"asset": {
"decimals": 8,
"name": "Bitcoin",
"symbol": "btc",
"type": "crypto"
}
}
]
],
"type": "array",
"items": {
"$ref": "#/components/schemas/Balance"
}
}
}
}Fields§
§balances: Vec<Balance>The list of balances.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Balances
impl<'de> Deserialize<'de> for Balances
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 Balances
impl RefUnwindSafe for Balances
impl Send for Balances
impl Sync for Balances
impl Unpin for Balances
impl UnsafeUnpin for Balances
impl UnwindSafe for Balances
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