Struct aws_sdk_iot::model::AttributePayload
source · [−]#[non_exhaustive]pub struct AttributePayload { /* private fields */ }Expand description
The attribute payload.
Implementations
sourceimpl 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.
sourceimpl AttributePayload
impl AttributePayload
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture AttributePayload.
Trait Implementations
sourceimpl Clone for AttributePayload
impl Clone for AttributePayload
sourcefn clone(&self) -> AttributePayload
fn clone(&self) -> AttributePayload
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 moresourceimpl Debug for AttributePayload
impl Debug for AttributePayload
sourceimpl PartialEq<AttributePayload> for AttributePayload
impl PartialEq<AttributePayload> for AttributePayload
sourcefn eq(&self, other: &AttributePayload) -> bool
fn eq(&self, other: &AttributePayload) -> bool
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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