pub struct DoctorReport {
pub schema: DoctorSchema,
pub producer: Producer,
pub outcome: DoctorOutcome,
pub environment: DoctorEnvironment,
pub checks: Vec<DoctorCheck>,
pub summary: DoctorSummary,
}Expand description
Complete read-only installation health report.
Fields§
§schema: DoctorSchemaExact response schema discriminator.
producer: ProducerProcess provenance.
outcome: DoctorOutcomeAggregate health derived from Self::checks.
environment: DoctorEnvironmentEffective host and storage paths.
checks: Vec<DoctorCheck>Deterministically ordered checks.
summary: DoctorSummaryCounts derived from Self::checks.
Implementations§
Source§impl DoctorReport
impl DoctorReport
Sourcepub fn new(
producer: Producer,
environment: DoctorEnvironment,
checks: Vec<DoctorCheck>,
) -> Self
pub fn new( producer: Producer, environment: DoctorEnvironment, checks: Vec<DoctorCheck>, ) -> Self
Build a report whose summary and aggregate outcome cannot disagree with its checks.
Sourcepub const fn has_errors(&self) -> bool
pub const fn has_errors(&self) -> bool
Return whether a promised capability failed.
Trait Implementations§
Source§impl Clone for DoctorReport
impl Clone for DoctorReport
Source§fn clone(&self) -> DoctorReport
fn clone(&self) -> DoctorReport
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 DoctorReport
impl Debug for DoctorReport
Source§impl<'de> Deserialize<'de> for DoctorReport
impl<'de> Deserialize<'de> for DoctorReport
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
impl Eq for DoctorReport
Source§impl JsonSchema for DoctorReport
impl JsonSchema for DoctorReport
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 moreSource§impl PartialEq for DoctorReport
impl PartialEq for DoctorReport
Source§impl Serialize for DoctorReport
impl Serialize for DoctorReport
impl StructuralPartialEq for DoctorReport
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