pub struct CommandInfo {
pub effect: Effect,
pub subcommand: Option<String>,
pub has_escalation_flags: bool,
pub affected_paths: Vec<Word>,
pub env_gates: Vec<EnvGate>,
pub wrapper: Option<WrapperInfo>,
}Expand description
The result of classifying a command — its effect, matched subcommand,
escalation flags, affected paths, env gates, and wrapper info.
Produced by classify.
Fields§
§effect: Effect§subcommand: Option<String>§has_escalation_flags: bool§affected_paths: Vec<Word>§env_gates: Vec<EnvGate>§wrapper: Option<WrapperInfo>Implementations§
Source§impl CommandInfo
impl CommandInfo
Trait Implementations§
Source§impl Clone for CommandInfo
impl Clone for CommandInfo
Source§fn clone(&self) -> CommandInfo
fn clone(&self) -> CommandInfo
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 moreSource§impl Debug for CommandInfo
impl Debug for CommandInfo
impl Eq for CommandInfo
Source§impl PartialEq for CommandInfo
impl PartialEq for CommandInfo
Source§fn eq(&self, other: &CommandInfo) -> bool
fn eq(&self, other: &CommandInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CommandInfo
Auto Trait Implementations§
impl Freeze for CommandInfo
impl RefUnwindSafe for CommandInfo
impl Send for CommandInfo
impl Sync for CommandInfo
impl Unpin for CommandInfo
impl UnsafeUnpin for CommandInfo
impl UnwindSafe for CommandInfo
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.