pub struct ListDataTokenBalancesResponse {
pub balances: Vec<TokenBalance>,
pub next_page_token: Option<String>,
}
Expand description
ListDataTokenBalancesResponse
JSON schema
{
"allOf": [
{
"type": "object",
"required": [
"balances"
],
"properties": {
"balances": {
"description": "The list of EVM token balances.",
"examples": [
[
{
"amount": {
"amount": "1250000000000000000",
"decimals": 18
},
"token": {
"contractAddress": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
"name": "ether",
"network": "base",
"symbol": "ETH"
}
},
{
"amount": {
"amount": "123456",
"decimals": 6
},
"token": {
"contractAddress": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"name": "USD Coin",
"network": "base",
"symbol": "USDC"
}
}
]
],
"type": "array",
"items": {
"$ref": "#/components/schemas/TokenBalance"
}
}
}
},
{
"$ref": "#/components/schemas/ListResponse"
}
]
}
Fields§
§balances: Vec<TokenBalance>
The list of EVM token balances.
next_page_token: Option<String>
The token for the next page of items, if any.
Implementations§
Trait Implementations§
Source§impl Clone for ListDataTokenBalancesResponse
impl Clone for ListDataTokenBalancesResponse
Source§fn clone(&self) -> ListDataTokenBalancesResponse
fn clone(&self) -> ListDataTokenBalancesResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'de> Deserialize<'de> for ListDataTokenBalancesResponse
impl<'de> Deserialize<'de> for ListDataTokenBalancesResponse
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<&ListDataTokenBalancesResponse> for ListDataTokenBalancesResponse
impl From<&ListDataTokenBalancesResponse> for ListDataTokenBalancesResponse
Source§fn from(value: &ListDataTokenBalancesResponse) -> Self
fn from(value: &ListDataTokenBalancesResponse) -> Self
Converts to this type from the input type.
Source§impl From<ListDataTokenBalancesResponse> for ListDataTokenBalancesResponse
impl From<ListDataTokenBalancesResponse> for ListDataTokenBalancesResponse
Source§fn from(value: ListDataTokenBalancesResponse) -> Self
fn from(value: ListDataTokenBalancesResponse) -> Self
Converts to this type from the input type.
Source§impl TryFrom<ListDataTokenBalancesResponse> for ListDataTokenBalancesResponse
impl TryFrom<ListDataTokenBalancesResponse> for ListDataTokenBalancesResponse
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: ListDataTokenBalancesResponse,
) -> Result<Self, ConversionError>
fn try_from( value: ListDataTokenBalancesResponse, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ListDataTokenBalancesResponse
impl RefUnwindSafe for ListDataTokenBalancesResponse
impl Send for ListDataTokenBalancesResponse
impl Sync for ListDataTokenBalancesResponse
impl Unpin for ListDataTokenBalancesResponse
impl UnwindSafe for ListDataTokenBalancesResponse
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