#[non_exhaustive]pub struct TargetReport {
pub detail: Map<String, Value>,
pub health: Option<Vec<HealthCheck>>,
}Expand description
One target’s material within a push: its health checks and its detail.
A machine and an application are described the same way, so the two grains read alike and a reporter builds one shape for both.
JSON schema
{
"description": "One target's material within a push: its health checks and its detail.\n\nA machine and an application are described the same way, so the two grains\nread alike and a reporter builds one shape for both.",
"type": "object",
"required": [
"detail"
],
"properties": {
"detail": {
"description": "Everything the reporter has to say about this target beyond its checks.\nRecorded verbatim against the target it was attached to.",
"type": "object"
},
"health": {
"description": "This target's checks. Absent and empty mean the same thing — the source\ncurrently has no checks for this target — which recovers every check it\npreviously reported for it.",
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/HealthCheck"
}
}
}
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.detail: Map<String, Value>Everything the reporter has to say about this target beyond its checks. Recorded verbatim against the target it was attached to.
health: Option<Vec<HealthCheck>>This target’s checks. Absent and empty mean the same thing — the source currently has no checks for this target — which recovers every check it previously reported for it.
Implementations§
Source§impl TargetReport
impl TargetReport
Sourcepub fn builder() -> TargetReportBuilder
pub fn builder() -> TargetReportBuilder
Create an instance of TargetReport using the builder syntax
Trait Implementations§
Source§impl Clone for TargetReport
impl Clone for TargetReport
Source§fn clone(&self) -> TargetReport
fn clone(&self) -> TargetReport
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 TargetReport
impl Debug for TargetReport
Source§impl<'de> Deserialize<'de> for TargetReport
impl<'de> Deserialize<'de> for TargetReport
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
Auto Trait Implementations§
impl Freeze for TargetReport
impl RefUnwindSafe for TargetReport
impl Send for TargetReport
impl Sync for TargetReport
impl Unpin for TargetReport
impl UnsafeUnpin for TargetReport
impl UnwindSafe for TargetReport
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