#[non_exhaustive]pub enum Status<'a> {
Stable,
Experimental,
Deprecated(Option<&'a str>),
Removed,
Internal,
}
Expand description
The status of a cheatcode.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Stable
The cheatcode and its API is currently stable.
Experimental
The cheatcode is unstable, meaning it may contain bugs and may break its API on any release.
Use of experimental cheatcodes will result in a warning.
Deprecated(Option<&'a str>)
The cheatcode has been deprecated, meaning it will be removed in a future release.
Contains the optional reason for deprecation.
Use of deprecated cheatcodes is discouraged and will result in a warning.
Removed
The cheatcode has been removed and is no longer available for use.
Use of removed cheatcodes will result in a hard error.
Internal
The cheatcode is only used internally for foundry testing and may be changed or removed at any time.
Use of internal cheatcodes is discouraged and will result in a warning.
Trait Implementations§
Source§impl<'de: 'a, 'a> Deserialize<'de> for Status<'a>
impl<'de: 'a, 'a> Deserialize<'de> for Status<'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>,
Source§impl<'a> JsonSchema for Status<'a>
impl<'a> JsonSchema for Status<'a>
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moreSource§impl<'a> Ord for Status<'a>
impl<'a> Ord for Status<'a>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl<'a> PartialOrd for Status<'a>
impl<'a> PartialOrd for Status<'a>
impl<'a> Eq for Status<'a>
impl<'a> StructuralPartialEq for Status<'a>
Auto Trait Implementations§
impl<'a> Freeze for Status<'a>
impl<'a> RefUnwindSafe for Status<'a>
impl<'a> Send for Status<'a>
impl<'a> Sync for Status<'a>
impl<'a> Unpin for Status<'a>
impl<'a> UnwindSafe for Status<'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
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
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: 24 bytes
Size for each variant:
Stable
: 0 bytesExperimental
: 0 bytesDeprecated
: 16 bytesRemoved
: 0 bytesInternal
: 0 bytes