pub struct GetBalancesResponse {
pub balances: Option<Vec<AccountBalance>>,
pub page: Option<u32>,
pub page_size: Option<u32>,
pub total: Option<u32>,
pub total_pages: Option<u32>,
}Expand description
GetBalancesResponse
JSON schema
{
"type": "object",
"properties": {
"balances": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/AccountBalance"
}
},
"page": {
"description": "Current page number",
"examples": [
1
],
"type": [
"integer",
"null"
],
"format": "uint32"
},
"page_size": {
"description": "Items per page",
"examples": [
20
],
"type": [
"integer",
"null"
],
"format": "uint32"
},
"total": {
"description": "Total number of balances",
"examples": [
5
],
"type": [
"integer",
"null"
],
"format": "uint32"
},
"total_pages": {
"description": "Total number of pages",
"examples": [
1
],
"type": [
"integer",
"null"
],
"format": "uint32"
}
}
}Fields§
§balances: Option<Vec<AccountBalance>>§page: Option<u32>Current page number
page_size: Option<u32>Items per page
total: Option<u32>Total number of balances
total_pages: Option<u32>Total number of pages
Trait Implementations§
Source§impl Clone for GetBalancesResponse
impl Clone for GetBalancesResponse
Source§fn clone(&self) -> GetBalancesResponse
fn clone(&self) -> GetBalancesResponse
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 GetBalancesResponse
impl Debug for GetBalancesResponse
Source§impl Default for GetBalancesResponse
impl Default for GetBalancesResponse
Source§impl<'de> Deserialize<'de> for GetBalancesResponse
impl<'de> Deserialize<'de> for GetBalancesResponse
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 GetBalancesResponse
impl RefUnwindSafe for GetBalancesResponse
impl Send for GetBalancesResponse
impl Sync for GetBalancesResponse
impl Unpin for GetBalancesResponse
impl UnsafeUnpin for GetBalancesResponse
impl UnwindSafe for GetBalancesResponse
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