pub struct GetWalletBalanceResponse {
pub balances: Vec<GetWalletBalanceResponseBalancesItem>,
}Expand description
GetWalletBalanceResponse
JSON schema
{
"examples": [
{
"balances": [
{
"asset": "eth",
"chain": "base",
"display_values": {
"eth": "0.001",
"usd": "2.56"
},
"raw_value": "1000000000000000000",
"raw_value_decimals": 18
}
]
}
],
"type": "object",
"required": [
"balances"
],
"properties": {
"balances": {
"type": "array",
"items": {
"type": "object",
"required": [
"asset",
"chain",
"display_values",
"raw_value",
"raw_value_decimals"
],
"properties": {
"asset": {
"type": "string",
"enum": [
"eth",
"pol",
"sol",
"usdc",
"usdt"
]
},
"chain": {
"type": "string",
"enum": [
"arbitrum",
"arbitrum_sepolia",
"base",
"base_sepolia",
"ethereum",
"linea",
"linea_testnet",
"optimism",
"optimism_sepolia",
"polygon",
"polygon_amoy",
"sepolia",
"solana",
"solana_devnet",
"solana_testnet",
"zksync_era"
]
},
"display_values": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"raw_value": {
"type": "string"
},
"raw_value_decimals": {
"type": "number"
}
}
}
}
}
}Fields§
§balances: Vec<GetWalletBalanceResponseBalancesItem>Trait Implementations§
Source§impl Clone for GetWalletBalanceResponse
impl Clone for GetWalletBalanceResponse
Source§fn clone(&self) -> GetWalletBalanceResponse
fn clone(&self) -> GetWalletBalanceResponse
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 Debug for GetWalletBalanceResponse
impl Debug for GetWalletBalanceResponse
Source§impl<'de> Deserialize<'de> for GetWalletBalanceResponse
impl<'de> Deserialize<'de> for GetWalletBalanceResponse
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<GetWalletBalanceResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<GetWalletBalanceResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&GetWalletBalanceResponse> for GetWalletBalanceResponse
impl From<&GetWalletBalanceResponse> for GetWalletBalanceResponse
Source§fn from(value: &GetWalletBalanceResponse) -> GetWalletBalanceResponse
fn from(value: &GetWalletBalanceResponse) -> GetWalletBalanceResponse
Converts to this type from the input type.
Source§impl Serialize for GetWalletBalanceResponse
impl Serialize for GetWalletBalanceResponse
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for GetWalletBalanceResponse
impl RefUnwindSafe for GetWalletBalanceResponse
impl Send for GetWalletBalanceResponse
impl Sync for GetWalletBalanceResponse
impl Unpin for GetWalletBalanceResponse
impl UnwindSafe for GetWalletBalanceResponse
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