pub struct SwapPermit2Approval {
pub eip712: Eip712Message,
pub hash: SwapPermit2ApprovalHash,
}Expand description
SwapPermit2Approval
JSON schema
{
"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: SwapPermit2ApprovalHashThe hash for the approval according to EIP-712. Computing the hash of the eip712 field should match the value of this field.
Implementations§
Source§impl SwapPermit2Approval
impl SwapPermit2Approval
pub fn builder() -> SwapPermit2Approval
Trait Implementations§
Source§impl Clone for SwapPermit2Approval
impl Clone for SwapPermit2Approval
Source§impl Debug for SwapPermit2Approval
impl Debug for SwapPermit2Approval
Source§impl<'de> Deserialize<'de> for SwapPermit2Approval
impl<'de> Deserialize<'de> for SwapPermit2Approval
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<&SwapPermit2Approval> for SwapPermit2Approval
impl From<&SwapPermit2Approval> for SwapPermit2Approval
Source§fn from(value: &SwapPermit2Approval) -> Self
fn from(value: &SwapPermit2Approval) -> Self
Converts to this type from the input type.
Source§impl From<SwapPermit2Approval> for SwapPermit2Approval
impl From<SwapPermit2Approval> for SwapPermit2Approval
Source§fn from(value: SwapPermit2Approval) -> Self
fn from(value: SwapPermit2Approval) -> Self
Converts to this type from the input type.
Source§impl Serialize for SwapPermit2Approval
impl Serialize for SwapPermit2Approval
Source§impl TryFrom<SwapPermit2Approval> for SwapPermit2Approval
impl TryFrom<SwapPermit2Approval> for SwapPermit2Approval
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: SwapPermit2Approval) -> Result<Self, ConversionError>
fn try_from(value: SwapPermit2Approval) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for SwapPermit2Approval
impl RefUnwindSafe for SwapPermit2Approval
impl Send for SwapPermit2Approval
impl Sync for SwapPermit2Approval
impl Unpin for SwapPermit2Approval
impl UnsafeUnpin for SwapPermit2Approval
impl UnwindSafe for SwapPermit2Approval
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