pub struct CreateSwapQuoteResponsePermit2 {
pub eip712: Eip712Message,
pub hash: CreateSwapQuoteResponsePermit2Hash,
}
Expand description
The approval object which contains the necessary fields to submit an approval for this transaction. Null if the fromToken
is the native token or the transaction is a native token wrap / unwrap.
JSON schema
{
"description": "The approval object which contains the necessary fields to submit an approval for this transaction. Null if the `fromToken` is the native token or the transaction is a native token wrap / unwrap.",
"type": "object",
"required": [
"eip712",
"hash"
],
"properties": {
"eip712": {
"$ref": "#/components/schemas/EIP712Message"
},
"hash": {
"description": "The hash for the approval according to [EIP-712](https://eips.ethereum.org/EIPS/eip-712). Computing the hash of the `eip712` field should match the value of this field.",
"examples": [
"0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
],
"type": "string",
"pattern": "^0x[a-fA-F0-9]{64}$"
}
}
}
Fields§
§eip712: Eip712Message
§hash: CreateSwapQuoteResponsePermit2Hash
The hash for the approval according to EIP-712. Computing the hash of the eip712
field should match the value of this field.
Implementations§
Trait Implementations§
Source§impl Clone for CreateSwapQuoteResponsePermit2
impl Clone for CreateSwapQuoteResponsePermit2
Source§fn clone(&self) -> CreateSwapQuoteResponsePermit2
fn clone(&self) -> CreateSwapQuoteResponsePermit2
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 CreateSwapQuoteResponsePermit2
impl<'de> Deserialize<'de> for CreateSwapQuoteResponsePermit2
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<&CreateSwapQuoteResponsePermit2> for CreateSwapQuoteResponsePermit2
impl From<&CreateSwapQuoteResponsePermit2> for CreateSwapQuoteResponsePermit2
Source§fn from(value: &CreateSwapQuoteResponsePermit2) -> Self
fn from(value: &CreateSwapQuoteResponsePermit2) -> Self
Converts to this type from the input type.
Source§impl From<CreateSwapQuoteResponsePermit2> for CreateSwapQuoteResponsePermit2
impl From<CreateSwapQuoteResponsePermit2> for CreateSwapQuoteResponsePermit2
Source§fn from(value: CreateSwapQuoteResponsePermit2) -> Self
fn from(value: CreateSwapQuoteResponsePermit2) -> Self
Converts to this type from the input type.
Source§impl TryFrom<CreateSwapQuoteResponsePermit2> for CreateSwapQuoteResponsePermit2
impl TryFrom<CreateSwapQuoteResponsePermit2> for CreateSwapQuoteResponsePermit2
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: CreateSwapQuoteResponsePermit2,
) -> Result<Self, ConversionError>
fn try_from( value: CreateSwapQuoteResponsePermit2, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for CreateSwapQuoteResponsePermit2
impl RefUnwindSafe for CreateSwapQuoteResponsePermit2
impl Send for CreateSwapQuoteResponsePermit2
impl Sync for CreateSwapQuoteResponsePermit2
impl Unpin for CreateSwapQuoteResponsePermit2
impl UnwindSafe for CreateSwapQuoteResponsePermit2
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