pub enum FlagInput {
Explicit(OutputMode),
JsonShort,
QuietShort,
None,
}Expand description
Which short-form implication, if any, was given on the command line.
--mode <m> carries an explicit OutputMode; --json / --quiet
are short-form implications per CONFIG.md §5. Mutual exclusion among
the three flags is enforced at the clap layer via conflicts_with,
so resolve’s caller is guaranteed to pass at most one of the
three.
Variants§
Explicit(OutputMode)
--mode <human|json|quiet|mcp> was given.
JsonShort
--json was given (implies Json).
QuietShort
--quiet/-q was given (implies Quiet).
None
No mode-related flag was given.
Trait Implementations§
impl Copy for FlagInput
impl Eq for FlagInput
impl StructuralPartialEq for FlagInput
Auto Trait Implementations§
impl Freeze for FlagInput
impl RefUnwindSafe for FlagInput
impl Send for FlagInput
impl Sync for FlagInput
impl Unpin for FlagInput
impl UnsafeUnpin for FlagInput
impl UnwindSafe for FlagInput
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