pub struct AttributePayload {
pub attributes: Option<HashMap<String, String>>,
pub merge: Option<bool>,
}Expand description
The attribute payload.
Fields§
§attributes: Option<HashMap<String, String>>A JSON string containing up to three key-value pair in JSON format. For example:
{\"attributes\":{\"string1\":\"string2\"}}
merge: Option<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.
Trait Implementations§
Source§impl Clone for AttributePayload
impl Clone for AttributePayload
Source§fn clone(&self) -> AttributePayload
fn clone(&self) -> AttributePayload
Returns a duplicate 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 Default for AttributePayload
impl Default for AttributePayload
Source§fn default() -> AttributePayload
fn default() -> AttributePayload
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AttributePayload
impl<'de> Deserialize<'de> for AttributePayload
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AttributePayload
impl PartialEq for AttributePayload
Source§impl Serialize for AttributePayload
impl Serialize for AttributePayload
impl StructuralPartialEq for AttributePayload
Auto Trait Implementations§
impl Freeze for AttributePayload
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