pub struct DoctorCheck {
pub check: String,
pub level: DoctorLevel,
pub detail: String,
pub code: Option<String>,
pub fix: Vec<String>,
pub remedy: Option<Remedy>,
pub tasks: Vec<String>,
pub commands: Vec<Argvs>,
}Expand description
One doctor check. Serialised with fix_steps: its fix lines with how
an interface takes each.
Fields§
§check: Stringgit, repository, project, config, key, sandbox, …
level: DoctorLevelPass, warn or fail.
detail: StringWhat was found.
code: Option<String>The catalog code of a failure or warning.
fix: Vec<String>How to resolve it.
remedy: Option<Remedy>The fix speccoder can apply itself, on the person’s yes.
tasks: Vec<String>The tasks a plan check names.
commands: Vec<Argvs>The person’s own commands among the fix lines, as built
(CommandResult::with_commands).
Trait Implementations§
Source§impl Clone for DoctorCheck
impl Clone for DoctorCheck
Source§impl Debug for DoctorCheck
impl Debug for DoctorCheck
impl Eq for DoctorCheck
Source§impl JsonSchema for DoctorCheck
impl JsonSchema for DoctorCheck
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for DoctorCheck
impl PartialEq for DoctorCheck
Source§impl Serialize for DoctorCheck
impl Serialize for DoctorCheck
impl StructuralPartialEq for DoctorCheck
Auto Trait Implementations§
impl Freeze for DoctorCheck
impl RefUnwindSafe for DoctorCheck
impl Send for DoctorCheck
impl Sync for DoctorCheck
impl Unpin for DoctorCheck
impl UnsafeUnpin for DoctorCheck
impl UnwindSafe for DoctorCheck
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