pub enum Framing {
Text,
Json,
Jsonl,
}Expand description
The wire format of what a command writes to stdout.
The machine contract, as distinct from the token a user types for it: aube spells its
line-delimited output ndjson and hk spells the identical format jsonl, so a
consumer keys off this and a user off OutputMeta::name.
Variants§
Text
Human-readable text, with no structure a consumer may assume.
Json
One JSON document, read to end of stream.
Jsonl
One JSON document per line, read incrementally and possibly unbounded.
Implementations§
Trait Implementations§
impl Copy for Framing
impl Eq for Framing
impl StructuralPartialEq for Framing
Auto Trait Implementations§
impl Freeze for Framing
impl RefUnwindSafe for Framing
impl Send for Framing
impl Sync for Framing
impl Unpin for Framing
impl UnsafeUnpin for Framing
impl UnwindSafe for Framing
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