Enum ethers_solc::artifacts::RevertStrings
source · [−]pub enum RevertStrings {
Default,
Strip,
Debug,
VerboseDebug,
}
Expand description
How to treat revert (and require) reason strings.
Variants
Default
“default” does not inject compiler-generated revert strings and keeps user-supplied ones.
Strip
“strip” removes all revert strings (if possible, i.e. if literals are used) keeping side-effects
Debug
“debug” injects strings for compiler-generated internal reverts, implemented for ABI encoders V1 and V2 for now.
VerboseDebug
“verboseDebug” even appends further information to user-supplied revert strings (not yet implemented)
Trait Implementations
sourceimpl Clone for RevertStrings
impl Clone for RevertStrings
sourcefn clone(&self) -> RevertStrings
fn clone(&self) -> RevertStrings
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for RevertStrings
impl Debug for RevertStrings
sourceimpl Default for RevertStrings
impl Default for RevertStrings
sourceimpl<'de> Deserialize<'de> for RevertStrings
impl<'de> Deserialize<'de> for RevertStrings
sourcefn 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
sourceimpl Display for RevertStrings
impl Display for RevertStrings
sourceimpl FromStr for RevertStrings
impl FromStr for RevertStrings
sourceimpl Ord for RevertStrings
impl Ord for RevertStrings
sourcefn cmp(&self, other: &RevertStrings) -> Ordering
fn cmp(&self, other: &RevertStrings) -> Ordering
1.21.0 · sourceconst fn max(self, other: Self) -> Selfwhere
Self: Sized,
const fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Selfwhere
Self: Sized,
const fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<RevertStrings> for RevertStrings
impl PartialEq<RevertStrings> for RevertStrings
sourcefn eq(&self, other: &RevertStrings) -> bool
fn eq(&self, other: &RevertStrings) -> bool
sourceimpl PartialOrd<RevertStrings> for RevertStrings
impl PartialOrd<RevertStrings> for RevertStrings
sourcefn partial_cmp(&self, other: &RevertStrings) -> Option<Ordering>
fn partial_cmp(&self, other: &RevertStrings) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresourceimpl Serialize for RevertStrings
impl Serialize for RevertStrings
impl Copy for RevertStrings
impl Eq for RevertStrings
impl StructuralEq for RevertStrings
impl StructuralPartialEq for RevertStrings
Auto Trait Implementations
impl RefUnwindSafe for RevertStrings
impl Send for RevertStrings
impl Sync for RevertStrings
impl Unpin for RevertStrings
impl UnwindSafe for RevertStrings
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.