Struct bollard_stubs::models::Health
source · pub struct Health {
pub status: Option<HealthStatusEnum>,
pub failing_streak: Option<i64>,
pub log: Option<Vec<HealthcheckResult>>,
}
Expand description
Health stores information about the container’s healthcheck results.
Fields§
§status: Option<HealthStatusEnum>
Status is one of none
, starting
, healthy
or unhealthy
- "none" Indicates there is no healthcheck - "starting" Starting indicates that the container is not yet ready - "healthy" Healthy indicates that the container is running correctly - "unhealthy" Unhealthy indicates that the container has a problem
failing_streak: Option<i64>
FailingStreak is the number of consecutive failures
log: Option<Vec<HealthcheckResult>>
Log contains the last few results (oldest first)
Trait Implementations§
source§impl<'de> Deserialize<'de> for Health
impl<'de> Deserialize<'de> for Health
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 StructuralPartialEq for Health
Auto Trait Implementations§
impl Freeze for Health
impl RefUnwindSafe for Health
impl Send for Health
impl Sync for Health
impl Unpin for Health
impl UnwindSafe for Health
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)