pub enum SafetyPreset {
Strict,
Moderate,
Minimal,
}Expand description
Safety preset for dangerous command detection.
Variants§
Strict
Maximum protection - warns on many potentially dangerous commands
Moderate
Balanced protection (default)
Minimal
Minimal protection - only warns on most dangerous commands
Trait Implementations§
Source§impl Clone for SafetyPreset
impl Clone for SafetyPreset
Source§fn clone(&self) -> SafetyPreset
fn clone(&self) -> SafetyPreset
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 SafetyPreset
impl Debug for SafetyPreset
Source§impl Default for SafetyPreset
impl Default for SafetyPreset
Source§fn default() -> SafetyPreset
fn default() -> SafetyPreset
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SafetyPreset
impl<'de> Deserialize<'de> for SafetyPreset
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 PartialEq for SafetyPreset
impl PartialEq for SafetyPreset
Source§impl Serialize for SafetyPreset
impl Serialize for SafetyPreset
impl Copy for SafetyPreset
impl Eq for SafetyPreset
impl StructuralPartialEq for SafetyPreset
Auto Trait Implementations§
impl Freeze for SafetyPreset
impl RefUnwindSafe for SafetyPreset
impl Send for SafetyPreset
impl Sync for SafetyPreset
impl Unpin for SafetyPreset
impl UnwindSafe for SafetyPreset
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.