pub struct ResolvedOutput {
pub mode: OutputMode,
pub quiet_was_explicit: bool,
}Expand description
The resolved output state per ADR-0017 Amendment 1: the
OutputMode the resolution ladder picked, plus a
quiet_was_explicit discriminator that distinguishes the user’s
explicit request for silence (--quiet / -q /
DOIGET_MODE=quiet / --mode quiet) from the resolver’s
implicit fallback to Quiet when stdout is not a TTY.
Per ADR-0017 Amendment 1, informational commands (audit-log Human,
list-recent, search, info, config show/path, provenance migrate,
fetch/batch status) suppress on any Quiet; artifact commands
(bib / csl / capabilities / audit-log --verify --mode json)
suppress only on explicit Quiet. The wire format of
OutputMode (DOIGET_MODE string values, the modes array in
capabilities JSON, the --mode clap values) is unchanged;
this struct lives only in-memory.
Fields§
§mode: OutputModeThe effective mode for this invocation.
quiet_was_explicit: booltrue iff the user supplied an explicit Quiet signal
(--quiet, -q, --mode quiet, DOIGET_MODE=quiet).
false for the non-TTY fallback to Quiet, and for any
non-Quiet mode.
Trait Implementations§
Source§impl Clone for ResolvedOutput
impl Clone for ResolvedOutput
Source§fn clone(&self) -> ResolvedOutput
fn clone(&self) -> ResolvedOutput
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ResolvedOutput
impl Debug for ResolvedOutput
Source§impl PartialEq for ResolvedOutput
impl PartialEq for ResolvedOutput
Source§fn eq(&self, other: &ResolvedOutput) -> bool
fn eq(&self, other: &ResolvedOutput) -> bool
self and other values to be equal, and is used by ==.