pub struct PermitTransferFrom {
pub token: [u8; 20],
pub amount: Uint256,
pub nonce: Uint256,
pub deadline: Uint256,
pub spender: [u8; 20],
}Expand description
A single-token signature transfer permit.
Fields§
§token: [u8; 20]Token address.
amount: Uint256Maximum transfer amount (uint256).
nonce: Uint256Unique nonce (uint256, unordered nonce bitmap model).
deadline: Uint256Signature deadline (uint256).
spender: [u8; 20]Address allowed to execute the transfer.
Implementations§
Source§impl PermitTransferFrom
impl PermitTransferFrom
Sourcepub fn struct_hash(&self) -> [u8; 32]
pub fn struct_hash(&self) -> [u8; 32]
Compute the EIP-712 struct hash.
Trait Implementations§
Source§impl Clone for PermitTransferFrom
impl Clone for PermitTransferFrom
Source§fn clone(&self) -> PermitTransferFrom
fn clone(&self) -> PermitTransferFrom
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 Debug for PermitTransferFrom
impl Debug for PermitTransferFrom
Source§impl PartialEq for PermitTransferFrom
impl PartialEq for PermitTransferFrom
impl Eq for PermitTransferFrom
impl StructuralPartialEq for PermitTransferFrom
Auto Trait Implementations§
impl Freeze for PermitTransferFrom
impl RefUnwindSafe for PermitTransferFrom
impl Send for PermitTransferFrom
impl Sync for PermitTransferFrom
impl Unpin for PermitTransferFrom
impl UnsafeUnpin for PermitTransferFrom
impl UnwindSafe for PermitTransferFrom
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