#[non_exhaustive]pub struct ComponentDeploymentSpecification {
pub component_version: Option<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: Option<String>
The 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
sourceimpl ComponentDeploymentSpecification
impl ComponentDeploymentSpecification
sourcepub fn component_version(&self) -> Option<&str>
pub fn component_version(&self) -> Option<&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.
sourceimpl ComponentDeploymentSpecification
impl ComponentDeploymentSpecification
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ComponentDeploymentSpecification
Trait Implementations
sourceimpl Clone for ComponentDeploymentSpecification
impl Clone for ComponentDeploymentSpecification
sourcefn clone(&self) -> ComponentDeploymentSpecification
fn clone(&self) -> ComponentDeploymentSpecification
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl PartialEq<ComponentDeploymentSpecification> for ComponentDeploymentSpecification
impl PartialEq<ComponentDeploymentSpecification> for ComponentDeploymentSpecification
sourcefn eq(&self, other: &ComponentDeploymentSpecification) -> bool
fn eq(&self, other: &ComponentDeploymentSpecification) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ComponentDeploymentSpecification) -> bool
fn ne(&self, other: &ComponentDeploymentSpecification) -> bool
This method tests for !=
.
impl StructuralPartialEq for ComponentDeploymentSpecification
Auto Trait Implementations
impl RefUnwindSafe for ComponentDeploymentSpecification
impl Send for ComponentDeploymentSpecification
impl Sync for ComponentDeploymentSpecification
impl Unpin for ComponentDeploymentSpecification
impl UnwindSafe for ComponentDeploymentSpecification
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more