pub enum TableOrJson {
Table,
Json,
}Expand description
A two-way -o/--output selector for commands that render either a
human-readable table or machine-readable JSON (no YAML/JSONL variants).
Used by the daemon-facing status/list commands that historically took a
boolean --json flag (issue #1125).
Variants§
Trait Implementations§
Source§impl Clone for TableOrJson
impl Clone for TableOrJson
Source§fn clone(&self) -> TableOrJson
fn clone(&self) -> TableOrJson
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 moreimpl Copy for TableOrJson
Source§impl Debug for TableOrJson
impl Debug for TableOrJson
Source§impl Default for TableOrJson
impl Default for TableOrJson
Source§fn default() -> TableOrJson
fn default() -> TableOrJson
Returns the “default value” for a type. Read more
impl Eq for TableOrJson
Source§impl PartialEq for TableOrJson
impl PartialEq for TableOrJson
Source§fn eq(&self, other: &TableOrJson) -> bool
fn eq(&self, other: &TableOrJson) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TableOrJson
Source§impl ValueEnum for TableOrJson
impl ValueEnum for TableOrJson
Auto Trait Implementations§
impl Freeze for TableOrJson
impl RefUnwindSafe for TableOrJson
impl Send for TableOrJson
impl Sync for TableOrJson
impl Unpin for TableOrJson
impl UnsafeUnpin for TableOrJson
impl UnwindSafe for TableOrJson
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.