#[non_exhaustive]pub struct ComponentCandidateBuilder { /* private fields */ }
Expand description
A builder for ComponentCandidate
.
Implementations§
source§impl ComponentCandidateBuilder
impl ComponentCandidateBuilder
sourcepub fn component_name(self, input: impl Into<String>) -> Self
pub fn component_name(self, input: impl Into<String>) -> Self
The name of the component.
sourcepub fn set_component_name(self, input: Option<String>) -> Self
pub fn set_component_name(self, input: Option<String>) -> Self
The name of the component.
sourcepub fn get_component_name(&self) -> &Option<String>
pub fn get_component_name(&self) -> &Option<String>
The name of the component.
sourcepub fn component_version(self, input: impl Into<String>) -> Self
pub fn component_version(self, input: impl Into<String>) -> Self
The version of the component.
sourcepub fn set_component_version(self, input: Option<String>) -> Self
pub fn set_component_version(self, input: Option<String>) -> Self
The version of the component.
sourcepub fn get_component_version(&self) -> &Option<String>
pub fn get_component_version(&self) -> &Option<String>
The version of the component.
sourcepub fn version_requirements(
self,
k: impl Into<String>,
v: impl Into<String>,
) -> Self
pub fn version_requirements( self, k: impl Into<String>, v: impl Into<String>, ) -> Self
Adds a key-value pair to version_requirements
.
To override the contents of this collection use set_version_requirements
.
The version requirements for the component's dependencies. Greengrass core devices get the version requirements from component recipes.
IoT Greengrass V2 uses semantic version constraints. For more information, see Semantic Versioning.
sourcepub fn set_version_requirements(
self,
input: Option<HashMap<String, String>>,
) -> Self
pub fn set_version_requirements( self, input: Option<HashMap<String, String>>, ) -> Self
The version requirements for the component's dependencies. Greengrass core devices get the version requirements from component recipes.
IoT Greengrass V2 uses semantic version constraints. For more information, see Semantic Versioning.
sourcepub fn get_version_requirements(&self) -> &Option<HashMap<String, String>>
pub fn get_version_requirements(&self) -> &Option<HashMap<String, String>>
The version requirements for the component's dependencies. Greengrass core devices get the version requirements from component recipes.
IoT Greengrass V2 uses semantic version constraints. For more information, see Semantic Versioning.
sourcepub fn build(self) -> ComponentCandidate
pub fn build(self) -> ComponentCandidate
Consumes the builder and constructs a ComponentCandidate
.
Trait Implementations§
source§impl Clone for ComponentCandidateBuilder
impl Clone for ComponentCandidateBuilder
source§fn clone(&self) -> ComponentCandidateBuilder
fn clone(&self) -> ComponentCandidateBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ComponentCandidateBuilder
impl Debug for ComponentCandidateBuilder
source§impl Default for ComponentCandidateBuilder
impl Default for ComponentCandidateBuilder
source§fn default() -> ComponentCandidateBuilder
fn default() -> ComponentCandidateBuilder
source§impl PartialEq for ComponentCandidateBuilder
impl PartialEq for ComponentCandidateBuilder
source§fn eq(&self, other: &ComponentCandidateBuilder) -> bool
fn eq(&self, other: &ComponentCandidateBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ComponentCandidateBuilder
Auto Trait Implementations§
impl Freeze for ComponentCandidateBuilder
impl RefUnwindSafe for ComponentCandidateBuilder
impl Send for ComponentCandidateBuilder
impl Sync for ComponentCandidateBuilder
impl Unpin for ComponentCandidateBuilder
impl UnwindSafe for ComponentCandidateBuilder
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