#[non_exhaustive]pub struct Cheatcode<'a> {
pub func: Function<'a>,
pub group: Group,
pub status: Status<'a>,
pub safety: Safety,
}
Expand description
Specification of a single cheatcode. Extends Function
with additional metadata.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.func: Function<'a>
The Solidity function declaration.
group: Group
The group that the cheatcode belongs to.
status: Status<'a>
The current status of the cheatcode. E.g. whether it is stable or experimental, etc.
safety: Safety
Whether the cheatcode is safe to use inside of scripts. E.g. it does not change state in an unexpected way.
Trait Implementations§
Source§impl<'de: 'a, 'a> Deserialize<'de> for Cheatcode<'a>
impl<'de: 'a, 'a> Deserialize<'de> for Cheatcode<'a>
Source§fn 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
Source§impl<'a> JsonSchema for Cheatcode<'a>
impl<'a> JsonSchema for Cheatcode<'a>
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreSource§impl<'a> Ord for Cheatcode<'a>
impl<'a> Ord for Cheatcode<'a>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> PartialOrd for Cheatcode<'a>
impl<'a> PartialOrd for Cheatcode<'a>
impl<'a> Eq for Cheatcode<'a>
impl<'a> StructuralPartialEq for Cheatcode<'a>
Auto Trait Implementations§
impl<'a> Freeze for Cheatcode<'a>
impl<'a> RefUnwindSafe for Cheatcode<'a>
impl<'a> Send for Cheatcode<'a>
impl<'a> Sync for Cheatcode<'a>
impl<'a> Unpin for Cheatcode<'a>
impl<'a> UnwindSafe for Cheatcode<'a>
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,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 120 bytes