pub struct CreateSwapQuoteResponseIssuesBalance {
pub current_balance: CreateSwapQuoteResponseIssuesBalanceCurrentBalance,
pub required_balance: CreateSwapQuoteResponseIssuesBalanceRequiredBalance,
pub token: CreateSwapQuoteResponseIssuesBalanceToken,
}
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: CreateSwapQuoteResponseIssuesBalanceCurrentBalance
The current balance of the fromToken
by the taker
.
required_balance: CreateSwapQuoteResponseIssuesBalanceRequiredBalance
The amount of the token that the taker
must hold.
token: CreateSwapQuoteResponseIssuesBalanceToken
The 0x-prefixed contract address of the token.
Implementations§
Trait Implementations§
Source§impl Clone for CreateSwapQuoteResponseIssuesBalance
impl Clone for CreateSwapQuoteResponseIssuesBalance
Source§fn clone(&self) -> CreateSwapQuoteResponseIssuesBalance
fn clone(&self) -> CreateSwapQuoteResponseIssuesBalance
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 CreateSwapQuoteResponseIssuesBalance
impl<'de> Deserialize<'de> for CreateSwapQuoteResponseIssuesBalance
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<&CreateSwapQuoteResponseIssuesBalance> for CreateSwapQuoteResponseIssuesBalance
impl From<&CreateSwapQuoteResponseIssuesBalance> for CreateSwapQuoteResponseIssuesBalance
Source§fn from(value: &CreateSwapQuoteResponseIssuesBalance) -> Self
fn from(value: &CreateSwapQuoteResponseIssuesBalance) -> Self
Converts to this type from the input type.
Source§impl From<CreateSwapQuoteResponseIssuesBalance> for CreateSwapQuoteResponseIssuesBalance
impl From<CreateSwapQuoteResponseIssuesBalance> for CreateSwapQuoteResponseIssuesBalance
Source§fn from(value: CreateSwapQuoteResponseIssuesBalance) -> Self
fn from(value: CreateSwapQuoteResponseIssuesBalance) -> Self
Converts to this type from the input type.
Source§impl TryFrom<CreateSwapQuoteResponseIssuesBalance> for CreateSwapQuoteResponseIssuesBalance
impl TryFrom<CreateSwapQuoteResponseIssuesBalance> for CreateSwapQuoteResponseIssuesBalance
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: CreateSwapQuoteResponseIssuesBalance,
) -> Result<Self, ConversionError>
fn try_from( value: CreateSwapQuoteResponseIssuesBalance, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for CreateSwapQuoteResponseIssuesBalance
impl RefUnwindSafe for CreateSwapQuoteResponseIssuesBalance
impl Send for CreateSwapQuoteResponseIssuesBalance
impl Sync for CreateSwapQuoteResponseIssuesBalance
impl Unpin for CreateSwapQuoteResponseIssuesBalance
impl UnwindSafe for CreateSwapQuoteResponseIssuesBalance
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