#[non_exhaustive]pub enum Destructiveness {
None,
Reversible,
Irreversible,
}Expand description
Destructiveness class for policy and approvals.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
No side effects of consequence.
Reversible
Effects can be undone.
Irreversible
Permanent effects.
Trait Implementations§
Source§impl Clone for Destructiveness
impl Clone for Destructiveness
Source§fn clone(&self) -> Destructiveness
fn clone(&self) -> Destructiveness
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Destructiveness
Source§impl Debug for Destructiveness
impl Debug for Destructiveness
Source§impl Default for Destructiveness
impl Default for Destructiveness
Source§fn default() -> Destructiveness
fn default() -> Destructiveness
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Destructiveness
impl<'de> Deserialize<'de> for Destructiveness
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
impl Eq for Destructiveness
Source§impl PartialEq for Destructiveness
impl PartialEq for Destructiveness
Source§impl Serialize for Destructiveness
impl Serialize for Destructiveness
impl StructuralPartialEq for Destructiveness
Auto Trait Implementations§
impl Freeze for Destructiveness
impl RefUnwindSafe for Destructiveness
impl Send for Destructiveness
impl Sync for Destructiveness
impl Unpin for Destructiveness
impl UnsafeUnpin for Destructiveness
impl UnwindSafe for Destructiveness
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