Struct bollard_stubs::models::Health[][src]

pub struct Health {
    pub status: Option<HealthStatusEnum>,
    pub failing_streak: Option<i64>,
    pub log: Option<Vec<HealthcheckResult>>,
}

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

impl Clone for Health[src]

impl Debug for Health[src]

impl Default for Health[src]

impl<'de> Deserialize<'de> for Health[src]

impl PartialEq<Health> for Health[src]

impl Serialize for Health[src]

impl StructuralPartialEq for Health[src]

Auto Trait Implementations

impl RefUnwindSafe for Health

impl Send for Health

impl Sync for Health

impl Unpin for Health

impl UnwindSafe for Health

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.