pub struct GetSwapPriceResponseIssuesBalance {
pub current_balance: GetSwapPriceResponseIssuesBalanceCurrentBalance,
pub required_balance: GetSwapPriceResponseIssuesBalanceRequiredBalance,
pub token: GetSwapPriceResponseIssuesBalanceToken,
}
Expand description
Details of the balance of the fromToken
that the taker
must hold. Null if the taker
has a sufficient balance.
JSON schema
{
"description": "Details of the balance of the `fromToken` that the `taker` must hold. Null if the `taker` has a sufficient balance.",
"examples": [
{
"currentBalance": "1000000000000000000",
"requiredBalance": "1000000000000000000",
"token": "0x6B175474E89094C44Da98b954EedeAC495271d0F"
}
],
"type": "object",
"required": [
"currentBalance",
"requiredBalance",
"token"
],
"properties": {
"currentBalance": {
"description": "The current balance of the `fromToken` by the `taker`.",
"examples": [
"10000000"
],
"type": "string",
"pattern": "^\\d+$"
},
"requiredBalance": {
"description": "The amount of the token that the `taker` must hold.",
"examples": [
"1000000000000000000"
],
"type": "string",
"pattern": "^\\d+$"
},
"token": {
"description": "The 0x-prefixed contract address of the token.",
"type": "string",
"pattern": "^0x[a-fA-F0-9]{40}$"
}
}
}
Fields§
§current_balance: GetSwapPriceResponseIssuesBalanceCurrentBalance
The current balance of the fromToken
by the taker
.
required_balance: GetSwapPriceResponseIssuesBalanceRequiredBalance
The amount of the token that the taker
must hold.
token: GetSwapPriceResponseIssuesBalanceToken
The 0x-prefixed contract address of the token.
Implementations§
Trait Implementations§
Source§impl Clone for GetSwapPriceResponseIssuesBalance
impl Clone for GetSwapPriceResponseIssuesBalance
Source§fn clone(&self) -> GetSwapPriceResponseIssuesBalance
fn clone(&self) -> GetSwapPriceResponseIssuesBalance
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 GetSwapPriceResponseIssuesBalance
impl<'de> Deserialize<'de> for GetSwapPriceResponseIssuesBalance
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<&GetSwapPriceResponseIssuesBalance> for GetSwapPriceResponseIssuesBalance
impl From<&GetSwapPriceResponseIssuesBalance> for GetSwapPriceResponseIssuesBalance
Source§fn from(value: &GetSwapPriceResponseIssuesBalance) -> Self
fn from(value: &GetSwapPriceResponseIssuesBalance) -> Self
Converts to this type from the input type.
Source§impl From<GetSwapPriceResponseIssuesBalance> for GetSwapPriceResponseIssuesBalance
impl From<GetSwapPriceResponseIssuesBalance> for GetSwapPriceResponseIssuesBalance
Source§fn from(value: GetSwapPriceResponseIssuesBalance) -> Self
fn from(value: GetSwapPriceResponseIssuesBalance) -> Self
Converts to this type from the input type.
Source§impl TryFrom<GetSwapPriceResponseIssuesBalance> for GetSwapPriceResponseIssuesBalance
impl TryFrom<GetSwapPriceResponseIssuesBalance> for GetSwapPriceResponseIssuesBalance
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: GetSwapPriceResponseIssuesBalance,
) -> Result<Self, ConversionError>
fn try_from( value: GetSwapPriceResponseIssuesBalance, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for GetSwapPriceResponseIssuesBalance
impl RefUnwindSafe for GetSwapPriceResponseIssuesBalance
impl Send for GetSwapPriceResponseIssuesBalance
impl Sync for GetSwapPriceResponseIssuesBalance
impl Unpin for GetSwapPriceResponseIssuesBalance
impl UnwindSafe for GetSwapPriceResponseIssuesBalance
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