pub struct CommonSwapResponseIssuesAllowance {
pub current_allowance: CommonSwapResponseIssuesAllowanceCurrentAllowance,
pub spender: CommonSwapResponseIssuesAllowanceSpender,
}
Expand description
Details of the allowances that the taker must set in order to execute the swap successfully. Null if no allowance is required.
JSON schema
{
"description": "Details of the allowances that the taker must set in order to execute the swap successfully. Null if no allowance is required.",
"examples": [
{
"currentAllowance": "1000000000",
"spender": "0x000000000022D473030F116dDEE9F6B43aC78BA3"
}
],
"type": "object",
"required": [
"currentAllowance",
"spender"
],
"properties": {
"currentAllowance": {
"description": "The current allowance of the `fromToken` by the `taker`.",
"examples": [
"1000000000"
],
"type": "string",
"pattern": "^\\d+$"
},
"spender": {
"description": "The 0x-prefixed address of to set the allowance on.",
"examples": [
"0x000000000022D473030F116dDEE9F6B43aC78BA3"
],
"type": "string",
"pattern": "^0x[a-fA-F0-9]{40}$"
}
}
}
Fields§
§current_allowance: CommonSwapResponseIssuesAllowanceCurrentAllowance
The current allowance of the fromToken
by the taker
.
spender: CommonSwapResponseIssuesAllowanceSpender
The 0x-prefixed address of to set the allowance on.
Implementations§
Trait Implementations§
Source§impl Clone for CommonSwapResponseIssuesAllowance
impl Clone for CommonSwapResponseIssuesAllowance
Source§fn clone(&self) -> CommonSwapResponseIssuesAllowance
fn clone(&self) -> CommonSwapResponseIssuesAllowance
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 CommonSwapResponseIssuesAllowance
impl<'de> Deserialize<'de> for CommonSwapResponseIssuesAllowance
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<&CommonSwapResponseIssuesAllowance> for CommonSwapResponseIssuesAllowance
impl From<&CommonSwapResponseIssuesAllowance> for CommonSwapResponseIssuesAllowance
Source§fn from(value: &CommonSwapResponseIssuesAllowance) -> Self
fn from(value: &CommonSwapResponseIssuesAllowance) -> Self
Converts to this type from the input type.
Source§impl From<CommonSwapResponseIssuesAllowance> for CommonSwapResponseIssuesAllowance
impl From<CommonSwapResponseIssuesAllowance> for CommonSwapResponseIssuesAllowance
Source§fn from(value: CommonSwapResponseIssuesAllowance) -> Self
fn from(value: CommonSwapResponseIssuesAllowance) -> Self
Converts to this type from the input type.
Source§impl TryFrom<CommonSwapResponseIssuesAllowance> for CommonSwapResponseIssuesAllowance
impl TryFrom<CommonSwapResponseIssuesAllowance> for CommonSwapResponseIssuesAllowance
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: CommonSwapResponseIssuesAllowance,
) -> Result<Self, ConversionError>
fn try_from( value: CommonSwapResponseIssuesAllowance, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for CommonSwapResponseIssuesAllowance
impl RefUnwindSafe for CommonSwapResponseIssuesAllowance
impl Send for CommonSwapResponseIssuesAllowance
impl Sync for CommonSwapResponseIssuesAllowance
impl Unpin for CommonSwapResponseIssuesAllowance
impl UnwindSafe for CommonSwapResponseIssuesAllowance
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