pub enum Format {
Human,
Json,
}Expand description
Output format for Report::render.
The CLI exposes this via --format; library callers can pick
whichever they need. Both formats are byte-stable for a given
Report.
Variants§
Human
Human-readable plain text. The shape a support engineer pastes
into a ticket: CASE, SEVERITY, LIKELY CAUSE, CONFIDENCE,
RULE, EVIDENCE, REPRODUCTION, NEXT STEPS,
ESCALATION NOTE, optional ALSO CONSIDERED.
Json
Pretty-printed JSON. Keys match the Report / Diagnosis
field names; suitable for piping into jq or another tool.
Trait Implementations§
impl Copy 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