pub enum Format {
Json,
JsonPretty,
Human,
MsgPack,
}Expand description
Output format including MsgPack
Variants§
Implementations§
Source§impl Format
impl Format
Sourcepub fn resolve(
json: bool,
human: bool,
output: Option<&str>,
pretty: bool,
) -> Self
pub fn resolve( json: bool, human: bool, output: Option<&str>, pretty: bool, ) -> Self
Resolve from CLI flags, env var, and config.
pretty selects indented JSON (token-heavy, for humans). The default
JSON output is compact for agent token efficiency.
Sourcepub fn to_output_format(self) -> OutputFormat
pub fn to_output_format(self) -> OutputFormat
Convert to OutputFormat for backward compatibility
Trait Implementations§
impl Copy for Format
impl Eq for Format
impl StructuralPartialEq for Format
Auto Trait Implementations§
impl Freeze for Format
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnsafeUnpin for Format
impl UnwindSafe for Format
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.