pub enum ConfigAction {
Show,
Doctor,
Missing,
Unknown(String),
}Expand description
The /config subcommand.
ConfigAction::Missing models the no-arg invocation (so
the dispatcher can emit a usage hint without string-parsing
the variant back). ConfigAction::Unknown preserves the
typed token so the usage line can say exactly what was
rejected — silent acceptance of an unknown action would
leave operators wondering whether the command ran.
Variants§
Trait Implementations§
Source§impl Clone for ConfigAction
impl Clone for ConfigAction
Source§fn clone(&self) -> ConfigAction
fn clone(&self) -> ConfigAction
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 ConfigAction
impl Debug for ConfigAction
Source§impl PartialEq for ConfigAction
impl PartialEq for ConfigAction
impl Eq for ConfigAction
impl StructuralPartialEq for ConfigAction
Auto Trait Implementations§
impl Freeze for ConfigAction
impl RefUnwindSafe for ConfigAction
impl Send for ConfigAction
impl Sync for ConfigAction
impl Unpin for ConfigAction
impl UnsafeUnpin for ConfigAction
impl UnwindSafe for ConfigAction
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