pub struct ContainerHealthcheckBuilder<___State = __ContainerHealthcheckBuilderInitialState> { /* private fields */ }
Expand description
Use builder syntax to set the required parameters and finish by calling the method Self::build_struct()
.
Implementations§
source§impl<__Interval, __Retries, __StartPeriod, __Tests, __Timeout> ContainerHealthcheckBuilder<(__Interval, __Retries, __StartPeriod, __Tests, __Timeout)>
impl<__Interval, __Retries, __StartPeriod, __Tests, __Timeout> ContainerHealthcheckBuilder<(__Interval, __Retries, __StartPeriod, __Tests, __Timeout)>
sourcepub fn build_struct(self) -> ContainerHealthcheckwhere
__Interval: IntoSet<Option<Box<Option<String>>>, ContainerHealthcheckBuilder__interval>,
__Retries: IntoSet<Option<Box<Option<i32>>>, ContainerHealthcheckBuilder__retries>,
__StartPeriod: IntoSet<Option<Box<Option<String>>>, ContainerHealthcheckBuilder__start_period>,
__Tests: IntoSet<Box<Vec<String>>, ContainerHealthcheckBuilder__tests>,
__Timeout: IntoSet<Option<Box<Option<String>>>, ContainerHealthcheckBuilder__timeout>,
pub fn build_struct(self) -> ContainerHealthcheckwhere
__Interval: IntoSet<Option<Box<Option<String>>>, ContainerHealthcheckBuilder__interval>,
__Retries: IntoSet<Option<Box<Option<i32>>>, ContainerHealthcheckBuilder__retries>,
__StartPeriod: IntoSet<Option<Box<Option<String>>>, ContainerHealthcheckBuilder__start_period>,
__Tests: IntoSet<Box<Vec<String>>, ContainerHealthcheckBuilder__tests>,
__Timeout: IntoSet<Option<Box<Option<String>>>, ContainerHealthcheckBuilder__timeout>,
Finishes building and returns the requested object.
sourcepub fn maybe_interval(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ContainerHealthcheckBuilderSetMember>::Intervalwhere
__Interval: IsUnset,
pub fn maybe_interval(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ContainerHealthcheckBuilderSetMember>::Intervalwhere
__Interval: IsUnset,
Same as [Self::r#interval
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn interval(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __ContainerHealthcheckBuilderSetMember>::Intervalwhere
__Interval: IsUnset,
pub fn interval(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __ContainerHealthcheckBuilderSetMember>::Intervalwhere
__Interval: IsUnset,
Time between running the check (ms|s|m|h). Defaults to 0s
.
sourcepub fn maybe_retries(
self,
value: Option<impl Into<Box<Option<i32>>>>,
) -> <Self as __ContainerHealthcheckBuilderSetMember>::Retrieswhere
__Retries: IsUnset,
pub fn maybe_retries(
self,
value: Option<impl Into<Box<Option<i32>>>>,
) -> <Self as __ContainerHealthcheckBuilderSetMember>::Retrieswhere
__Retries: IsUnset,
Same as [Self::r#retries
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn retries(
self,
value: impl Into<Box<Option<i32>>>,
) -> <Self as __ContainerHealthcheckBuilderSetMember>::Retrieswhere
__Retries: IsUnset,
pub fn retries(
self,
value: impl Into<Box<Option<i32>>>,
) -> <Self as __ContainerHealthcheckBuilderSetMember>::Retrieswhere
__Retries: IsUnset,
Consecutive failures needed to report unhealthy. Defaults to 0
.
sourcepub fn maybe_start_period(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ContainerHealthcheckBuilderSetMember>::StartPeriodwhere
__StartPeriod: IsUnset,
pub fn maybe_start_period(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ContainerHealthcheckBuilderSetMember>::StartPeriodwhere
__StartPeriod: IsUnset,
Same as [Self::r#start_period
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn start_period(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __ContainerHealthcheckBuilderSetMember>::StartPeriodwhere
__StartPeriod: IsUnset,
pub fn start_period(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __ContainerHealthcheckBuilderSetMember>::StartPeriodwhere
__StartPeriod: IsUnset,
Start period for the container to initialize before counting retries towards unstable (ms|s|m|h). Defaults to 0s
.
sourcepub fn tests(
self,
value: impl Into<Box<Vec<String>>>,
) -> <Self as __ContainerHealthcheckBuilderSetMember>::Testswhere
__Tests: IsUnset,
pub fn tests(
self,
value: impl Into<Box<Vec<String>>>,
) -> <Self as __ContainerHealthcheckBuilderSetMember>::Testswhere
__Tests: IsUnset,
Command to run to check health. For example, to run curl -f localhost/health
set the command to be ["CMD", "curl", "-f", "localhost/health"]
.