#[non_exhaustive]pub struct ComponentConfigurationUpdate {
pub merge: Option<String>,
pub reset: Option<Vec<String>>,
}
Expand description
Contains information about a deployment's update to a component's configuration on Greengrass core devices. For more information, see Update component configurations in the IoT Greengrass V2 Developer Guide.
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.merge: Option<String>
A serialized JSON string that contains the configuration object to merge to target devices. The core device merges this configuration with the component's existing configuration. If this is the first time a component deploys on a device, the core device merges this configuration with the component's default configuration. This means that the core device keeps it's existing configuration for keys and values that you don't specify in this object. For more information, see Merge configuration updates in the IoT Greengrass V2 Developer Guide.
reset: Option<Vec<String>>
The list of configuration nodes to reset to default values on target devices. Use JSON pointers to specify each node to reset. JSON pointers start with a forward slash (/
) and use forward slashes to separate the key for each level in the object. For more information, see the JSON pointer specification and Reset configuration updates in the IoT Greengrass V2 Developer Guide.
Implementations
sourceimpl ComponentConfigurationUpdate
impl ComponentConfigurationUpdate
sourcepub fn merge(&self) -> Option<&str>
pub fn merge(&self) -> Option<&str>
A serialized JSON string that contains the configuration object to merge to target devices. The core device merges this configuration with the component's existing configuration. If this is the first time a component deploys on a device, the core device merges this configuration with the component's default configuration. This means that the core device keeps it's existing configuration for keys and values that you don't specify in this object. For more information, see Merge configuration updates in the IoT Greengrass V2 Developer Guide.
sourcepub fn reset(&self) -> Option<&[String]>
pub fn reset(&self) -> Option<&[String]>
The list of configuration nodes to reset to default values on target devices. Use JSON pointers to specify each node to reset. JSON pointers start with a forward slash (/
) and use forward slashes to separate the key for each level in the object. For more information, see the JSON pointer specification and Reset configuration updates in the IoT Greengrass V2 Developer Guide.
sourceimpl ComponentConfigurationUpdate
impl ComponentConfigurationUpdate
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ComponentConfigurationUpdate
Trait Implementations
sourceimpl Clone for ComponentConfigurationUpdate
impl Clone for ComponentConfigurationUpdate
sourcefn clone(&self) -> ComponentConfigurationUpdate
fn clone(&self) -> ComponentConfigurationUpdate
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 Debug for ComponentConfigurationUpdate
impl Debug for ComponentConfigurationUpdate
sourceimpl PartialEq<ComponentConfigurationUpdate> for ComponentConfigurationUpdate
impl PartialEq<ComponentConfigurationUpdate> for ComponentConfigurationUpdate
sourcefn eq(&self, other: &ComponentConfigurationUpdate) -> bool
fn eq(&self, other: &ComponentConfigurationUpdate) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ComponentConfigurationUpdate) -> bool
fn ne(&self, other: &ComponentConfigurationUpdate) -> bool
This method tests for !=
.
impl StructuralPartialEq for ComponentConfigurationUpdate
Auto Trait Implementations
impl RefUnwindSafe for ComponentConfigurationUpdate
impl Send for ComponentConfigurationUpdate
impl Sync for ComponentConfigurationUpdate
impl Unpin for ComponentConfigurationUpdate
impl UnwindSafe for ComponentConfigurationUpdate
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