pub struct AccountBalance {
pub asset_id: Option<Uuid>,
pub available_balance: Option<String>,
pub available_balance_raw: Option<String>,
pub decimals: Option<i32>,
pub locked_balance: Option<String>,
pub locked_balance_raw: Option<String>,
pub symbol: Option<String>,
pub token: Option<String>,
pub total_balance: Option<String>,
}Expand description
AccountBalance
JSON schema
{
"type": "object",
"properties": {
"asset_id": {
"description": "Asset UUID",
"examples": [
"123e4567-e89b-12d3-a456-426614174000"
],
"type": [
"string",
"null"
],
"format": "uuid"
},
"available_balance": {
"description": "Available (unlocked) balance in token units",
"examples": [
"1000.50"
],
"type": [
"string",
"null"
]
},
"available_balance_raw": {
"description": "Raw available balance in smallest token unit",
"examples": [
"1000500000"
],
"type": [
"string",
"null"
]
},
"decimals": {
"description": "Token decimal places",
"examples": [
6
],
"type": [
"integer",
"null"
],
"format": "int32"
},
"locked_balance": {
"description": "Balance locked in open orders",
"examples": [
"50.25"
],
"type": [
"string",
"null"
]
},
"locked_balance_raw": {
"description": "Raw locked balance in smallest token unit",
"examples": [
"50250000"
],
"type": [
"string",
"null"
]
},
"symbol": {
"description": "Token symbol",
"examples": [
"USDC"
],
"type": [
"string",
"null"
]
},
"token": {
"description": "Token contract address",
"type": [
"string",
"null"
]
},
"total_balance": {
"description": "Total balance (available + locked)",
"examples": [
"1050.75"
],
"type": [
"string",
"null"
]
}
}
}Fields§
§asset_id: Option<Uuid>Asset UUID
available_balance: Option<String>Available (unlocked) balance in token units
available_balance_raw: Option<String>Raw available balance in smallest token unit
decimals: Option<i32>Token decimal places
locked_balance: Option<String>Balance locked in open orders
locked_balance_raw: Option<String>Raw locked balance in smallest token unit
symbol: Option<String>Token symbol
token: Option<String>Token contract address
total_balance: Option<String>Total balance (available + locked)
Trait Implementations§
Source§impl Clone for AccountBalance
impl Clone for AccountBalance
Source§fn clone(&self) -> AccountBalance
fn clone(&self) -> AccountBalance
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 AccountBalance
impl Debug for AccountBalance
Source§impl Default for AccountBalance
impl Default for AccountBalance
Source§impl<'de> Deserialize<'de> for AccountBalance
impl<'de> Deserialize<'de> for AccountBalance
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 AccountBalance
impl RefUnwindSafe for AccountBalance
impl Send for AccountBalance
impl Sync for AccountBalance
impl Unpin for AccountBalance
impl UnsafeUnpin for AccountBalance
impl UnwindSafe for AccountBalance
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