#[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§
source§impl 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) -> &[String]
pub fn reset(&self) -> &[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.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .reset.is_none().
source§impl ComponentConfigurationUpdate
impl ComponentConfigurationUpdate
sourcepub fn builder() -> ComponentConfigurationUpdateBuilder
pub fn builder() -> ComponentConfigurationUpdateBuilder
Creates a new builder-style object to manufacture ComponentConfigurationUpdate.
Trait Implementations§
source§impl Clone for ComponentConfigurationUpdate
impl Clone for ComponentConfigurationUpdate
source§fn clone(&self) -> ComponentConfigurationUpdate
fn clone(&self) -> ComponentConfigurationUpdate
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ComponentConfigurationUpdate
impl Debug for ComponentConfigurationUpdate
source§impl PartialEq for ComponentConfigurationUpdate
impl PartialEq for ComponentConfigurationUpdate
source§fn eq(&self, other: &ComponentConfigurationUpdate) -> bool
fn eq(&self, other: &ComponentConfigurationUpdate) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ComponentConfigurationUpdate
Auto Trait Implementations§
impl Freeze for ComponentConfigurationUpdate
impl RefUnwindSafe for ComponentConfigurationUpdate
impl Send for ComponentConfigurationUpdate
impl Sync for ComponentConfigurationUpdate
impl Unpin for ComponentConfigurationUpdate
impl UnwindSafe for ComponentConfigurationUpdate
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