pub struct SnapshotImageHealthCheck {
pub test: Vec<String>,
pub interval: Option<u64>,
pub timeout: Option<u64>,
pub retries: Option<u32>,
pub start_period: Option<u64>,
}Expand description
Health-check defaults embedded in a resolved OCI image configuration.
Fields§
§test: Vec<String>Health-check command.
interval: Option<u64>Interval in seconds.
timeout: Option<u64>Timeout in seconds.
retries: Option<u32>Retry count.
start_period: Option<u64>Start period in seconds.
Implementations§
Source§impl SnapshotImageHealthCheck
impl SnapshotImageHealthCheck
Sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Whether the OCI health-check declaration contains an executable command.
Trait Implementations§
Source§impl Clone for SnapshotImageHealthCheck
impl Clone for SnapshotImageHealthCheck
Source§fn clone(&self) -> SnapshotImageHealthCheck
fn clone(&self) -> SnapshotImageHealthCheck
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 SnapshotImageHealthCheck
impl Debug for SnapshotImageHealthCheck
Source§impl Default for SnapshotImageHealthCheck
impl Default for SnapshotImageHealthCheck
Source§fn default() -> SnapshotImageHealthCheck
fn default() -> SnapshotImageHealthCheck
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SnapshotImageHealthCheck
impl<'de> Deserialize<'de> for SnapshotImageHealthCheck
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 SnapshotImageHealthCheck
Source§impl PartialEq for SnapshotImageHealthCheck
impl PartialEq for SnapshotImageHealthCheck
Source§impl Serialize for SnapshotImageHealthCheck
impl Serialize for SnapshotImageHealthCheck
impl StructuralPartialEq for SnapshotImageHealthCheck
Auto Trait Implementations§
impl Freeze for SnapshotImageHealthCheck
impl RefUnwindSafe for SnapshotImageHealthCheck
impl Send for SnapshotImageHealthCheck
impl Sync for SnapshotImageHealthCheck
impl Unpin for SnapshotImageHealthCheck
impl UnsafeUnpin for SnapshotImageHealthCheck
impl UnwindSafe for SnapshotImageHealthCheck
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.