#[non_exhaustive]pub struct ComponentDeploymentSpecification {
pub component_version: String,
pub configuration_update: Option<ComponentConfigurationUpdate>,
pub run_with: Option<ComponentRunWith>,
}Expand description
Contains information about a component to deploy.
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.component_version: StringThe version of the component.
configuration_update: Option<ComponentConfigurationUpdate>The configuration updates to deploy for the component. You can define reset updates and merge updates. A reset updates the keys that you specify to the default configuration for the component. A merge updates the core device's component configuration with the keys and values that you specify. The IoT Greengrass Core software applies reset updates before it applies merge updates. For more information, see Update component configurations in the IoT Greengrass V2 Developer Guide.
run_with: Option<ComponentRunWith>The system user and group that the IoT Greengrass Core software uses to run component processes on the core device. If you omit this parameter, the IoT Greengrass Core software uses the system user and group that you configure for the core device. For more information, see Configure the user and group that run components in the IoT Greengrass V2 Developer Guide.
Implementations§
source§impl ComponentDeploymentSpecification
impl ComponentDeploymentSpecification
sourcepub fn component_version(&self) -> &str
pub fn component_version(&self) -> &str
The version of the component.
sourcepub fn configuration_update(&self) -> Option<&ComponentConfigurationUpdate>
pub fn configuration_update(&self) -> Option<&ComponentConfigurationUpdate>
The configuration updates to deploy for the component. You can define reset updates and merge updates. A reset updates the keys that you specify to the default configuration for the component. A merge updates the core device's component configuration with the keys and values that you specify. The IoT Greengrass Core software applies reset updates before it applies merge updates. For more information, see Update component configurations in the IoT Greengrass V2 Developer Guide.
sourcepub fn run_with(&self) -> Option<&ComponentRunWith>
pub fn run_with(&self) -> Option<&ComponentRunWith>
The system user and group that the IoT Greengrass Core software uses to run component processes on the core device. If you omit this parameter, the IoT Greengrass Core software uses the system user and group that you configure for the core device. For more information, see Configure the user and group that run components in the IoT Greengrass V2 Developer Guide.
source§impl ComponentDeploymentSpecification
impl ComponentDeploymentSpecification
sourcepub fn builder() -> ComponentDeploymentSpecificationBuilder
pub fn builder() -> ComponentDeploymentSpecificationBuilder
Creates a new builder-style object to manufacture ComponentDeploymentSpecification.
Trait Implementations§
source§impl Clone for ComponentDeploymentSpecification
impl Clone for ComponentDeploymentSpecification
source§fn clone(&self) -> ComponentDeploymentSpecification
fn clone(&self) -> ComponentDeploymentSpecification
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl PartialEq for ComponentDeploymentSpecification
impl PartialEq for ComponentDeploymentSpecification
source§fn eq(&self, other: &ComponentDeploymentSpecification) -> bool
fn eq(&self, other: &ComponentDeploymentSpecification) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ComponentDeploymentSpecification
Auto Trait Implementations§
impl Freeze for ComponentDeploymentSpecification
impl RefUnwindSafe for ComponentDeploymentSpecification
impl Send for ComponentDeploymentSpecification
impl Sync for ComponentDeploymentSpecification
impl Unpin for ComponentDeploymentSpecification
impl UnwindSafe for ComponentDeploymentSpecification
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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