pub struct Check {
pub name: String,
pub status: Status,
pub detail: String,
pub fix: Option<String>,
}Expand description
One thing that was checked, and what to do when it is wrong.
Fields§
§name: StringWhat was checked, e.g. git or node reachable.
status: StatusHow it came out.
detail: StringWhat was found: a path, a version, an error, an http status.
fix: Option<String>The command that fixes it, when there is one to name.
None for a passing check and for a failure whose fix depends on
something this process cannot know. A wrong fix is worse than no
fix: it gets run.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Check
impl RefUnwindSafe for Check
impl Send for Check
impl Sync for Check
impl Unpin for Check
impl UnsafeUnpin for Check
impl UnwindSafe for Check
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