pub struct PermitSingle {
pub details: PermitDetails,
pub spender: Bytes,
pub sig_deadline: BigUint,
}Expand description
Represents a single permit for permit2.
§Fields
details: The details of the permit, such as token, amount, expiration, and nonce.spender: The address authorized to spend the tokens.sig_deadline: The deadline (as a timestamp) for the permit signature
Fields§
§details: PermitDetails§spender: Bytes§sig_deadline: BigUintTrait 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 · 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 PartialEq for PermitSingle
impl PartialEq for PermitSingle
Source§impl TryFrom<&PermitSingle> for PermitSingle
impl TryFrom<&PermitSingle> for PermitSingle
Source§type Error = EncodingError
type Error = EncodingError
The type returned in the event of a conversion error.
Source§fn try_from(sol: &PermitSingle) -> Result<Self, EncodingError>
fn try_from(sol: &PermitSingle) -> Result<Self, EncodingError>
Performs the conversion.
Source§impl TryFrom<&PermitSingle> for PermitSingle
impl TryFrom<&PermitSingle> for PermitSingle
Source§type Error = EncodingError
type Error = EncodingError
The type returned in the event of a conversion error.
Source§fn try_from(p: &PermitSingle) -> Result<Self, EncodingError>
fn try_from(p: &PermitSingle) -> Result<Self, EncodingError>
Performs the conversion.
Auto Trait Implementations§
impl !Freeze for PermitSingle
impl RefUnwindSafe for PermitSingle
impl Send for PermitSingle
impl Sync for PermitSingle
impl Unpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more