pub struct HealthReport {
pub status: HealthStatus,
pub detail: Option<String>,
pub metrics: Option<Value>,
pub summary: Option<String>,
}Fields§
§status: HealthStatus§detail: Option<String>The module’s note for operators. It may hold ids, counters and JSON, and is never shown to a person by default.
metrics: Option<Value>§summary: Option<String>One plain sentence for a person: what the state means for them and
what to do, if anything. At most HEALTH_SUMMARY_MAX_CHARS Unicode
scalar values, no control characters or line breaks, no JSON ({ or
[), and no backticks except one ck … command in backticks at the
end. The daemon drops a summary that breaks the rule and still counts
the rest of the report. A healthy module usually sends none.
Implementations§
Source§impl HealthReport
impl HealthReport
Trait Implementations§
Source§impl Clone for HealthReport
impl Clone for HealthReport
Source§impl Debug for HealthReport
impl Debug for HealthReport
Source§impl<'de> Deserialize<'de> for HealthReport
impl<'de> Deserialize<'de> for HealthReport
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 From<HealthReport> for ModuleControlResponse
impl From<HealthReport> for ModuleControlResponse
Source§fn from(report: HealthReport) -> Self
fn from(report: HealthReport) -> Self
Converts to this type from the input type.
Source§impl PartialEq for HealthReport
impl PartialEq for HealthReport
Source§impl Serialize for HealthReport
impl Serialize for HealthReport
impl StructuralPartialEq for HealthReport
Auto Trait Implementations§
impl Forget for HealthReport
impl Freeze for HealthReportwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
impl Move for HealthReport
impl RefUnwindSafe for HealthReport
impl Send for HealthReport
impl Sync for HealthReport
impl Unpin for HealthReport
impl UnsafeUnpin for HealthReportwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for HealthReport
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