pub enum OutputMode {
Human,
Json,
Quiet,
Mcp,
}Expand description
The four output modes from docs/CONFIG.md §3 / ADR-0017.
Human: line-oriented text, intended for a terminal.Json: structured machine output (where the command supports it).Quiet: no informational stdout; errors still go to stderr.Mcp: JSON-RPC framing on stdout (forbidden for non-servecommands; entered only via theServesubcommand).
Variants§
Human
Line-oriented text output, intended for a terminal.
Json
Structured JSON output (where the command supports it).
Quiet
No informational stdout; errors still go to stderr.
Mcp
JSON-RPC framing on stdout (only via doiget serve).
Trait Implementations§
Source§impl Clone for OutputMode
impl Clone for OutputMode
Source§fn clone(&self) -> OutputMode
fn clone(&self) -> OutputMode
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 OutputMode
impl Debug for OutputMode
Source§impl PartialEq for OutputMode
impl PartialEq for OutputMode
Source§fn eq(&self, other: &OutputMode) -> bool
fn eq(&self, other: &OutputMode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl ValueEnum for OutputMode
impl ValueEnum for OutputMode
impl Copy for OutputMode
impl Eq for OutputMode
impl StructuralPartialEq for OutputMode
Auto Trait Implementations§
impl Freeze for OutputMode
impl RefUnwindSafe for OutputMode
impl Send for OutputMode
impl Sync for OutputMode
impl Unpin for OutputMode
impl UnsafeUnpin for OutputMode
impl UnwindSafe for OutputMode
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