pub struct permitReturn {}Expand description
@dev Sets value as the allowance of spender over owner’s tokens,
given owner’s signed approval.
IMPORTANT: The same issues {IERC20-approve} has related to transaction ordering also apply here.
Emits an {Approval} event.
Requirements:
spendercannot be the zero address.deadlinemust be a timestamp in the future.v,randsmust be a validsecp256k1signature fromownerover the EIP712-formatted function arguments.- the signature must use
owner’s current nonce (see {nonces}).
For more information on the signature format, see the
https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP section].
Container type for the return parameters of the permit(address,address,uint256,uint256,uint8,bytes32,bytes32) function.
Trait Implementations§
Source§impl Clone for permitReturn
impl Clone for permitReturn
Source§fn clone(&self) -> permitReturn
fn clone(&self) -> permitReturn
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 moreAuto Trait Implementations§
impl Freeze for permitReturn
impl RefUnwindSafe for permitReturn
impl Send for permitReturn
impl Sync for permitReturn
impl Unpin for permitReturn
impl UnwindSafe for permitReturn
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