pub struct PatchEntityRequest {
pub metadata: Map<String, Value>,
}Expand description
Shallow-merge into existing entity_metadata (PATCH). Does not replace the whole map.
JSON schema
{
"description": "Shallow-merge into existing `entity_metadata` (PATCH). Does not replace the whole map.",
"type": "object",
"required": [
"metadata"
],
"properties": {
"metadata": {
"description": "Keys to merge into persisted metadata. Omitted keys are left unchanged.\nJSON `null` removes a key (e.g. clear `floor` when setting `floor_number`).",
"type": "object",
"additionalProperties": {}
}
}
}Fields§
§metadata: Map<String, Value>Keys to merge into persisted metadata. Omitted keys are left unchanged.
JSON null removes a key (e.g. clear floor when setting floor_number).
Trait Implementations§
Source§impl Clone for PatchEntityRequest
impl Clone for PatchEntityRequest
Source§fn clone(&self) -> PatchEntityRequest
fn clone(&self) -> PatchEntityRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PatchEntityRequest
impl Debug for PatchEntityRequest
Source§impl<'de> Deserialize<'de> for PatchEntityRequest
impl<'de> Deserialize<'de> for PatchEntityRequest
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
Auto Trait Implementations§
impl Freeze for PatchEntityRequest
impl RefUnwindSafe for PatchEntityRequest
impl Send for PatchEntityRequest
impl Sync for PatchEntityRequest
impl Unpin for PatchEntityRequest
impl UnsafeUnpin for PatchEntityRequest
impl UnwindSafe for PatchEntityRequest
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