pub struct CreateSwapQuoteResponseIssuesAllowance {
pub current_allowance: CreateSwapQuoteResponseIssuesAllowanceCurrentAllowance,
pub spender: CreateSwapQuoteResponseIssuesAllowanceSpender,
}
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: CreateSwapQuoteResponseIssuesAllowanceCurrentAllowance
The current allowance of the fromToken
by the taker
.
spender: CreateSwapQuoteResponseIssuesAllowanceSpender
The 0x-prefixed address of to set the allowance on.
Implementations§
Trait Implementations§
Source§impl Clone for CreateSwapQuoteResponseIssuesAllowance
impl Clone for CreateSwapQuoteResponseIssuesAllowance
Source§fn clone(&self) -> CreateSwapQuoteResponseIssuesAllowance
fn clone(&self) -> CreateSwapQuoteResponseIssuesAllowance
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 CreateSwapQuoteResponseIssuesAllowance
impl<'de> Deserialize<'de> for CreateSwapQuoteResponseIssuesAllowance
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<&CreateSwapQuoteResponseIssuesAllowance> for CreateSwapQuoteResponseIssuesAllowance
impl From<&CreateSwapQuoteResponseIssuesAllowance> for CreateSwapQuoteResponseIssuesAllowance
Source§fn from(value: &CreateSwapQuoteResponseIssuesAllowance) -> Self
fn from(value: &CreateSwapQuoteResponseIssuesAllowance) -> Self
Converts to this type from the input type.
Source§impl From<CreateSwapQuoteResponseIssuesAllowance> for CreateSwapQuoteResponseIssuesAllowance
impl From<CreateSwapQuoteResponseIssuesAllowance> for CreateSwapQuoteResponseIssuesAllowance
Source§fn from(value: CreateSwapQuoteResponseIssuesAllowance) -> Self
fn from(value: CreateSwapQuoteResponseIssuesAllowance) -> Self
Converts to this type from the input type.
Source§impl TryFrom<CreateSwapQuoteResponseIssuesAllowance> for CreateSwapQuoteResponseIssuesAllowance
impl TryFrom<CreateSwapQuoteResponseIssuesAllowance> for CreateSwapQuoteResponseIssuesAllowance
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: CreateSwapQuoteResponseIssuesAllowance,
) -> Result<Self, ConversionError>
fn try_from( value: CreateSwapQuoteResponseIssuesAllowance, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for CreateSwapQuoteResponseIssuesAllowance
impl RefUnwindSafe for CreateSwapQuoteResponseIssuesAllowance
impl Send for CreateSwapQuoteResponseIssuesAllowance
impl Sync for CreateSwapQuoteResponseIssuesAllowance
impl Unpin for CreateSwapQuoteResponseIssuesAllowance
impl UnwindSafe for CreateSwapQuoteResponseIssuesAllowance
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