pub struct DoctorReport {
pub failures: Vec<DoctorFailure>,
}Expand description
The outcome of a doctor run: every failed check, in check order.
Fields§
§failures: Vec<DoctorFailure>Empty when every check passed.
Implementations§
Source§impl DoctorReport
impl DoctorReport
Sourcepub fn render_json(&self) -> Result<String, Error>
pub fn render_json(&self) -> Result<String, Error>
The exact stdout payload of fz doctor --json: one object, one
line, no trailing newline.
§Errors
Only if serde_json cannot serialize the report — a struct of
strings and numbers cannot hit that, but the Result keeps every
caller total instead of panicking.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DoctorReport
impl RefUnwindSafe for DoctorReport
impl Send for DoctorReport
impl Sync for DoctorReport
impl Unpin for DoctorReport
impl UnsafeUnpin for DoctorReport
impl UnwindSafe for DoctorReport
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