pub enum Format {
Text,
Tree,
Paths,
Long,
Json,
Jsonl,
Yaml,
}Expand description
How a report is serialized.
Variants§
Text
Human-readable text.
Tree
The bounded directory hierarchy for a list.
Paths
Matching paths, one safely escaped path per line.
Long
Flat size, signed modification age, and path columns.
Json
One JSON document.
Jsonl
One JSON document per line, one line per section.
Yaml
YAML.
Implementations§
Source§impl Format
impl Format
Sourcepub const ALL: &'static [&'static str]
pub const ALL: &'static [&'static str]
Every accepted spelling, for help text and error messages.
Sourcepub const fn label(self) -> &'static str
pub const fn label(self) -> &'static str
Stable spelling used by request adapters and diagnostics.
Sourcepub const fn is_machine(self) -> bool
pub const fn is_machine(self) -> bool
Whether this format is a structured serialization.
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