Struct aws_sdk_iot::types::AttributePayload
source · #[non_exhaustive]pub struct AttributePayload {
pub attributes: Option<HashMap<String, String>>,
pub merge: bool,
}
Expand description
The attribute payload.
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.attributes: Option<HashMap<String, String>>
A JSON string containing up to three key-value pair in JSON format. For example:
{\"attributes\":{\"string1\":\"string2\"}}
merge: bool
Specifies whether the list of attributes provided in the AttributePayload
is merged with the attributes stored in the registry, instead of overwriting them.
To remove an attribute, call UpdateThing
with an empty attribute value.
The merge
attribute is only valid when calling UpdateThing
or UpdateThingGroup
.
Implementations§
source§impl AttributePayload
impl AttributePayload
sourcepub fn attributes(&self) -> Option<&HashMap<String, String>>
pub fn attributes(&self) -> Option<&HashMap<String, String>>
A JSON string containing up to three key-value pair in JSON format. For example:
{\"attributes\":{\"string1\":\"string2\"}}
sourcepub fn merge(&self) -> bool
pub fn merge(&self) -> bool
Specifies whether the list of attributes provided in the AttributePayload
is merged with the attributes stored in the registry, instead of overwriting them.
To remove an attribute, call UpdateThing
with an empty attribute value.
The merge
attribute is only valid when calling UpdateThing
or UpdateThingGroup
.
source§impl AttributePayload
impl AttributePayload
sourcepub fn builder() -> AttributePayloadBuilder
pub fn builder() -> AttributePayloadBuilder
Creates a new builder-style object to manufacture AttributePayload
.
Trait Implementations§
source§impl Clone for AttributePayload
impl Clone for AttributePayload
source§fn clone(&self) -> AttributePayload
fn clone(&self) -> AttributePayload
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AttributePayload
impl Debug for AttributePayload
source§impl PartialEq for AttributePayload
impl PartialEq for AttributePayload
source§fn eq(&self, other: &AttributePayload) -> bool
fn eq(&self, other: &AttributePayload) -> bool
self
and other
values to be equal, and is used
by ==
.