#[non_exhaustive]pub struct ComponentDependencyRequirementBuilder { /* private fields */ }
Expand description
A builder for ComponentDependencyRequirement
.
Implementations§
source§impl ComponentDependencyRequirementBuilder
impl ComponentDependencyRequirementBuilder
sourcepub fn version_requirement(self, input: impl Into<String>) -> Self
pub fn version_requirement(self, input: impl Into<String>) -> Self
The component version requirement for the component dependency.
IoT Greengrass V2 uses semantic version constraints. For more information, see Semantic Versioning.
sourcepub fn set_version_requirement(self, input: Option<String>) -> Self
pub fn set_version_requirement(self, input: Option<String>) -> Self
The component version requirement for the component dependency.
IoT Greengrass V2 uses semantic version constraints. For more information, see Semantic Versioning.
sourcepub fn get_version_requirement(&self) -> &Option<String>
pub fn get_version_requirement(&self) -> &Option<String>
The component version requirement for the component dependency.
IoT Greengrass V2 uses semantic version constraints. For more information, see Semantic Versioning.
sourcepub fn dependency_type(self, input: ComponentDependencyType) -> Self
pub fn dependency_type(self, input: ComponentDependencyType) -> Self
The type of this dependency. Choose from the following options:
-
SOFT
– The component doesn't restart if the dependency changes state. -
HARD
– The component restarts if the dependency changes state.
Default: HARD
sourcepub fn set_dependency_type(self, input: Option<ComponentDependencyType>) -> Self
pub fn set_dependency_type(self, input: Option<ComponentDependencyType>) -> Self
The type of this dependency. Choose from the following options:
-
SOFT
– The component doesn't restart if the dependency changes state. -
HARD
– The component restarts if the dependency changes state.
Default: HARD
sourcepub fn get_dependency_type(&self) -> &Option<ComponentDependencyType>
pub fn get_dependency_type(&self) -> &Option<ComponentDependencyType>
The type of this dependency. Choose from the following options:
-
SOFT
– The component doesn't restart if the dependency changes state. -
HARD
– The component restarts if the dependency changes state.
Default: HARD
sourcepub fn build(self) -> ComponentDependencyRequirement
pub fn build(self) -> ComponentDependencyRequirement
Consumes the builder and constructs a ComponentDependencyRequirement
.
Trait Implementations§
source§impl Clone for ComponentDependencyRequirementBuilder
impl Clone for ComponentDependencyRequirementBuilder
source§fn clone(&self) -> ComponentDependencyRequirementBuilder
fn clone(&self) -> ComponentDependencyRequirementBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ComponentDependencyRequirementBuilder
impl Default for ComponentDependencyRequirementBuilder
source§fn default() -> ComponentDependencyRequirementBuilder
fn default() -> ComponentDependencyRequirementBuilder
source§impl PartialEq for ComponentDependencyRequirementBuilder
impl PartialEq for ComponentDependencyRequirementBuilder
source§fn eq(&self, other: &ComponentDependencyRequirementBuilder) -> bool
fn eq(&self, other: &ComponentDependencyRequirementBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ComponentDependencyRequirementBuilder
Auto Trait Implementations§
impl Freeze for ComponentDependencyRequirementBuilder
impl RefUnwindSafe for ComponentDependencyRequirementBuilder
impl Send for ComponentDependencyRequirementBuilder
impl Sync for ComponentDependencyRequirementBuilder
impl Unpin for ComponentDependencyRequirementBuilder
impl UnwindSafe for ComponentDependencyRequirementBuilder
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