#[non_exhaustive]pub struct TaskContainerDependencyBuilder { /* private fields */ }
Expand description
A builder for TaskContainerDependency
.
Implementations§
source§impl TaskContainerDependencyBuilder
impl TaskContainerDependencyBuilder
sourcepub fn container_name(self, input: impl Into<String>) -> Self
pub fn container_name(self, input: impl Into<String>) -> Self
A unique identifier for the container.
sourcepub fn set_container_name(self, input: Option<String>) -> Self
pub fn set_container_name(self, input: Option<String>) -> Self
A unique identifier for the container.
sourcepub fn get_container_name(&self) -> &Option<String>
pub fn get_container_name(&self) -> &Option<String>
A unique identifier for the container.
sourcepub fn condition(self, input: impl Into<String>) -> Self
pub fn condition(self, input: impl Into<String>) -> Self
The dependency condition of the container. The following are the available conditions and their behavior:
-
START
- This condition emulates the behavior of links and volumes today. It validates that a dependent container is started before permitting other containers to start. -
COMPLETE
- This condition validates that a dependent container runs to completion (exits) before permitting other containers to start. This can be useful for nonessential containers that run a script and then exit. This condition can't be set on an essential container. -
SUCCESS
- This condition is the same asCOMPLETE
, but it also requires that the container exits with a zero status. This condition can't be set on an essential container.
sourcepub fn set_condition(self, input: Option<String>) -> Self
pub fn set_condition(self, input: Option<String>) -> Self
The dependency condition of the container. The following are the available conditions and their behavior:
-
START
- This condition emulates the behavior of links and volumes today. It validates that a dependent container is started before permitting other containers to start. -
COMPLETE
- This condition validates that a dependent container runs to completion (exits) before permitting other containers to start. This can be useful for nonessential containers that run a script and then exit. This condition can't be set on an essential container. -
SUCCESS
- This condition is the same asCOMPLETE
, but it also requires that the container exits with a zero status. This condition can't be set on an essential container.
sourcepub fn get_condition(&self) -> &Option<String>
pub fn get_condition(&self) -> &Option<String>
The dependency condition of the container. The following are the available conditions and their behavior:
-
START
- This condition emulates the behavior of links and volumes today. It validates that a dependent container is started before permitting other containers to start. -
COMPLETE
- This condition validates that a dependent container runs to completion (exits) before permitting other containers to start. This can be useful for nonessential containers that run a script and then exit. This condition can't be set on an essential container. -
SUCCESS
- This condition is the same asCOMPLETE
, but it also requires that the container exits with a zero status. This condition can't be set on an essential container.
sourcepub fn build(self) -> TaskContainerDependency
pub fn build(self) -> TaskContainerDependency
Consumes the builder and constructs a TaskContainerDependency
.
Trait Implementations§
source§impl Clone for TaskContainerDependencyBuilder
impl Clone for TaskContainerDependencyBuilder
source§fn clone(&self) -> TaskContainerDependencyBuilder
fn clone(&self) -> TaskContainerDependencyBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for TaskContainerDependencyBuilder
impl Default for TaskContainerDependencyBuilder
source§fn default() -> TaskContainerDependencyBuilder
fn default() -> TaskContainerDependencyBuilder
source§impl PartialEq for TaskContainerDependencyBuilder
impl PartialEq for TaskContainerDependencyBuilder
source§fn eq(&self, other: &TaskContainerDependencyBuilder) -> bool
fn eq(&self, other: &TaskContainerDependencyBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TaskContainerDependencyBuilder
Auto Trait Implementations§
impl Freeze for TaskContainerDependencyBuilder
impl RefUnwindSafe for TaskContainerDependencyBuilder
impl Send for TaskContainerDependencyBuilder
impl Sync for TaskContainerDependencyBuilder
impl Unpin for TaskContainerDependencyBuilder
impl UnwindSafe for TaskContainerDependencyBuilder
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more