pub enum StateMutability {
NonPayable,
Payable,
View,
Pure,
}Expand description
State mutability of a function.
Variants§
NonPayable
May read and modify state.
Payable
May receive Ether.
View
Reads state but does not modify it.
Pure
Does not read or modify state.
Trait Implementations§
Source§impl Clone for StateMutability
impl Clone for StateMutability
Source§fn clone(&self) -> StateMutability
fn clone(&self) -> StateMutability
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 StateMutability
impl Debug for StateMutability
Source§impl Display for StateMutability
impl Display for StateMutability
Source§impl PartialEq for StateMutability
impl PartialEq for StateMutability
impl Copy for StateMutability
impl Eq for StateMutability
impl StructuralPartialEq for StateMutability
Auto Trait Implementations§
impl Freeze for StateMutability
impl RefUnwindSafe for StateMutability
impl Send for StateMutability
impl Sync for StateMutability
impl Unpin for StateMutability
impl UnsafeUnpin for StateMutability
impl UnwindSafe for StateMutability
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