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