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