Struct aws_sdk_iot::types::AttributePayload
source · #[non_exhaustive]pub struct AttributePayload { /* private fields */ }Expand description
The attribute payload.
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
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for AttributePayload
impl Debug for AttributePayload
source§impl PartialEq<AttributePayload> for AttributePayload
impl PartialEq<AttributePayload> for AttributePayload
source§fn eq(&self, other: &AttributePayload) -> bool
fn eq(&self, other: &AttributePayload) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AttributePayload
Auto Trait Implementations§
impl RefUnwindSafe for AttributePayload
impl Send for AttributePayload
impl Sync for AttributePayload
impl Unpin for AttributePayload
impl UnwindSafe for AttributePayload
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
Mutably borrows from an owned value. Read more