pub struct approveReturn {
pub _0: bool,
}
Expand description
@dev Sets a value
amount of tokens as the allowance of spender
over the
caller’s tokens.
Returns a boolean value indicating whether the operation succeeded.
IMPORTANT: Beware that changing an allowance with this method brings the risk that someone may use both the old and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this race condition is to first reduce the spender’s allowance to 0 and set the desired value afterwards: https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
Emits an {Approval} event.
Container type for the return parameters of the approve(address,uint256)
function.
Fields§
§_0: bool
Trait Implementations§
Source§impl Clone for approveReturn
impl Clone for approveReturn
Source§fn clone(&self) -> approveReturn
fn clone(&self) -> approveReturn
Returns a copy 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 approveReturn
impl RefUnwindSafe for approveReturn
impl Send for approveReturn
impl Sync for approveReturn
impl Unpin for approveReturn
impl UnwindSafe for approveReturn
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