pub enum CommandMode {
Agent,
Plan,
}Expand description
Application mode visible to commands.
Variants§
Implementations§
Source§impl CommandMode
impl CommandMode
Sourcepub fn parse(value: &str) -> Option<Self>
pub fn parse(value: &str) -> Option<Self>
Parse a /mode argument, mirroring the config layer’s AppMode::parse.
pub fn is_retired_operate_alias(value: &str) -> bool
Sourcepub fn is_legacy_bypass_alias(value: &str) -> bool
pub fn is_legacy_bypass_alias(value: &str) -> bool
Legacy bypass spellings (yolo, 4, bypass, …) that carry full access.
Sourcepub fn display_name(self) -> &'static str
pub fn display_name(self) -> &'static str
Short English UI label for the mode.
Trait Implementations§
Source§impl Clone for CommandMode
impl Clone for CommandMode
impl Copy for CommandMode
Source§impl Debug for CommandMode
impl Debug for CommandMode
impl Eq for CommandMode
Source§impl PartialEq for CommandMode
impl PartialEq for CommandMode
impl StructuralPartialEq for CommandMode
Auto Trait Implementations§
impl Forget for CommandMode
impl Freeze for CommandMode
impl Move for CommandMode
impl RefUnwindSafe for CommandMode
impl Send for CommandMode
impl Sync for CommandMode
impl Unpin for CommandMode
impl UnsafeUnpin for CommandMode
impl UnwindSafe for CommandMode
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.