#[non_exhaustive]pub struct ComponentDependencyRequirement {
pub version_requirement: Option<String>,
pub dependency_type: Option<ComponentDependencyType>,
}
Expand description
Contains information about a component dependency for a Lambda function component.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.version_requirement: Option<String>
The component version requirement for the component dependency.
IoT Greengrass V2 uses semantic version constraints. For more information, see Semantic Versioning.
dependency_type: 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
Implementations§
source§impl ComponentDependencyRequirement
impl ComponentDependencyRequirement
sourcepub fn version_requirement(&self) -> Option<&str>
pub fn version_requirement(&self) -> Option<&str>
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) -> Option<&ComponentDependencyType>
pub fn 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
source§impl ComponentDependencyRequirement
impl ComponentDependencyRequirement
sourcepub fn builder() -> ComponentDependencyRequirementBuilder
pub fn builder() -> ComponentDependencyRequirementBuilder
Creates a new builder-style object to manufacture ComponentDependencyRequirement
.
Trait Implementations§
source§impl Clone for ComponentDependencyRequirement
impl Clone for ComponentDependencyRequirement
source§fn clone(&self) -> ComponentDependencyRequirement
fn clone(&self) -> ComponentDependencyRequirement
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for ComponentDependencyRequirement
impl PartialEq for ComponentDependencyRequirement
source§fn eq(&self, other: &ComponentDependencyRequirement) -> bool
fn eq(&self, other: &ComponentDependencyRequirement) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ComponentDependencyRequirement
Auto Trait Implementations§
impl Freeze for ComponentDependencyRequirement
impl RefUnwindSafe for ComponentDependencyRequirement
impl Send for ComponentDependencyRequirement
impl Sync for ComponentDependencyRequirement
impl Unpin for ComponentDependencyRequirement
impl UnwindSafe for ComponentDependencyRequirement
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