pub enum CommandSafety {
Safe,
NeedsReview {
reason: String,
},
}Expand description
Outcome of analyzing a shell command.
Variants§
Safe
The command appears read-only / non-mutating and may be auto-approved.
NeedsReview
The command contains constructs that may mutate state or cannot be statically analyzed; it requires explicit approval.
Implementations§
Trait Implementations§
Source§impl Clone for CommandSafety
impl Clone for CommandSafety
Source§fn clone(&self) -> CommandSafety
fn clone(&self) -> CommandSafety
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 CommandSafety
impl Debug for CommandSafety
Source§impl PartialEq for CommandSafety
impl PartialEq for CommandSafety
impl Eq for CommandSafety
impl StructuralPartialEq for CommandSafety
Auto Trait Implementations§
impl Freeze for CommandSafety
impl RefUnwindSafe for CommandSafety
impl Send for CommandSafety
impl Sync for CommandSafety
impl Unpin for CommandSafety
impl UnsafeUnpin for CommandSafety
impl UnwindSafe for CommandSafety
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> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§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.