pub struct InstallCheck {
pub id: String,
pub state: CheckState,
pub observed: String,
pub cause: Option<String>,
pub next: Option<String>,
}Expand description
One check: what was asked, what was seen, and — when it does not hold — why, and the
command that changes it. The cause and next fields exist so that a report is
actionable without a second document; a check that fails without naming its remedy is
a diagnostic nobody can act on.
Fields§
§id: StringA short stable name: model, version, targets, release, artifacts, metadata.
state: CheckStateWhether it holds.
observed: StringWhat was observed, in one line.
cause: Option<String>Why it does not hold. Absent when it does.
next: Option<String>The command or action that would change it. Absent when there is nothing to do.
Trait Implementations§
Source§impl Clone for InstallCheck
impl Clone for InstallCheck
Source§fn clone(&self) -> InstallCheck
fn clone(&self) -> InstallCheck
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InstallCheck
impl Debug for InstallCheck
Source§impl<'de> Deserialize<'de> for InstallCheck
impl<'de> Deserialize<'de> for InstallCheck
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for InstallCheck
impl JsonSchema for InstallCheck
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
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 moreAuto Trait Implementations§
impl Freeze for InstallCheck
impl RefUnwindSafe for InstallCheck
impl Send for InstallCheck
impl Sync for InstallCheck
impl Unpin for InstallCheck
impl UnsafeUnpin for InstallCheck
impl UnwindSafe for InstallCheck
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