pub struct Healthcheck {
pub cmd: String,
pub interval: Option<String>,
pub timeout: Option<String>,
pub start: Option<String>,
pub retries: Option<u16>,
}
Expand description
Represents the Dockerfile healthcheck instruction See https://docs.docker.com/reference/dockerfile/#healthcheck
Fields§
§cmd: String
The test to run
interval: Option<String>
The interval between two tests
timeout: Option<String>
The timeout of the test
start: Option<String>
The start period of the test
retries: Option<u16>
The number of retries
Trait Implementations§
Source§impl Clone for Healthcheck
impl Clone for Healthcheck
Source§fn clone(&self) -> Healthcheck
fn clone(&self) -> Healthcheck
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Healthcheck
impl Debug for Healthcheck
Source§impl Default for Healthcheck
impl Default for Healthcheck
Source§fn default() -> Healthcheck
fn default() -> Healthcheck
Returns the “default value” for a type. Read more
Source§impl From<HealthcheckPatch> for Healthcheck
impl From<HealthcheckPatch> for Healthcheck
Source§fn from(value: HealthcheckPatch) -> Self
fn from(value: HealthcheckPatch) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Healthcheck
impl PartialEq for Healthcheck
Source§impl Patch<HealthcheckPatch> for Healthcheck
impl Patch<HealthcheckPatch> for Healthcheck
Source§fn apply(&mut self, patch: HealthcheckPatch)
fn apply(&mut self, patch: HealthcheckPatch)
Apply a patch
Source§fn into_patch(self) -> HealthcheckPatch
fn into_patch(self) -> HealthcheckPatch
Returns a patch that when applied turns any struct of the same type into
Self
Source§fn into_patch_by_diff(self, previous_struct: Self) -> HealthcheckPatch
fn into_patch_by_diff(self, previous_struct: Self) -> HealthcheckPatch
Returns a patch that when applied turns
previous_struct
into Self
Source§fn new_empty_patch() -> HealthcheckPatch
fn new_empty_patch() -> HealthcheckPatch
Get an empty patch instance
Source§impl Serialize for Healthcheck
impl Serialize for Healthcheck
impl StructuralPartialEq for Healthcheck
Auto Trait Implementations§
impl Freeze for Healthcheck
impl RefUnwindSafe for Healthcheck
impl Send for Healthcheck
impl Sync for Healthcheck
impl Unpin for Healthcheck
impl UnwindSafe for Healthcheck
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