pub struct PermitSingle { /* private fields */ }Expand description
A single permit for permit2 token transfer authorization.
Implementations§
Source§impl PermitSingle
impl PermitSingle
Sourcepub fn new(
details: PermitDetails,
spender: Bytes,
sig_deadline: BigUint,
) -> Self
pub fn new( details: PermitDetails, spender: Bytes, sig_deadline: BigUint, ) -> Self
Create a new permit with the given details, spender, and signature deadline.
Sourcepub fn details(&self) -> &PermitDetails
pub fn details(&self) -> &PermitDetails
Permit details (token, amount, expiration, nonce).
Sourcepub fn sig_deadline(&self) -> &BigUint
pub fn sig_deadline(&self) -> &BigUint
Signature deadline timestamp.
Trait Implementations§
Source§impl Clone for PermitSingle
impl Clone for PermitSingle
Source§fn clone(&self) -> PermitSingle
fn clone(&self) -> PermitSingle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PermitSingle
impl Debug for PermitSingle
Source§impl<'de> Deserialize<'de> for PermitSingle
impl<'de> Deserialize<'de> for PermitSingle
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
Auto Trait Implementations§
impl !Freeze for PermitSingle
impl RefUnwindSafe for PermitSingle
impl Send for PermitSingle
impl Sync for PermitSingle
impl Unpin for PermitSingle
impl UnsafeUnpin for PermitSingle
impl UnwindSafe for PermitSingle
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