pub struct UpdateEntityRequest {
pub channel_index: Option<i32>,
pub entity_type: Option<String>,
pub external_id: Option<String>,
pub metadata: Option<Map<String, Value>>,
pub name: Option<String>,
pub zone_id: Option<String>,
}Expand description
UpdateEntityRequest
JSON schema
{
"type": "object",
"properties": {
"channel_index": {
"type": [
"integer",
"null"
],
"format": "int32"
},
"entity_type": {
"type": [
"string",
"null"
]
},
"external_id": {
"type": [
"string",
"null"
]
},
"metadata": {
"description": "Update (replace) persisted entity metadata.\n\n- `None`: no change\n- `Some(None)`: clear metadata\n- `Some(Some(map))`: replace with provided map",
"type": [
"object",
"null"
],
"additionalProperties": {}
},
"name": {
"description": "Update entity name.\n\n- `None`: no change\n- `Some(None)`: clear\n- `Some(Some(name))`: set (trimmed; empty becomes clear)",
"type": [
"string",
"null"
]
},
"zone_id": {
"type": [
"string",
"null"
]
}
}
}Fields§
§channel_index: Option<i32>§entity_type: Option<String>§external_id: Option<String>§metadata: Option<Map<String, Value>>Update (replace) persisted entity metadata.
- `None`: no change
- `Some(None)`: clear metadata
- `Some(Some(map))`: replace with provided mapname: Option<String>Update entity name.
- `None`: no change
- `Some(None)`: clear
- `Some(Some(name))`: set (trimmed; empty becomes clear)zone_id: Option<String>Trait Implementations§
Source§impl Clone for UpdateEntityRequest
impl Clone for UpdateEntityRequest
Source§fn clone(&self) -> UpdateEntityRequest
fn clone(&self) -> UpdateEntityRequest
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 UpdateEntityRequest
impl Debug for UpdateEntityRequest
Source§impl Default for UpdateEntityRequest
impl Default for UpdateEntityRequest
Source§impl<'de> Deserialize<'de> for UpdateEntityRequest
impl<'de> Deserialize<'de> for UpdateEntityRequest
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 UpdateEntityRequest
impl RefUnwindSafe for UpdateEntityRequest
impl Send for UpdateEntityRequest
impl Sync for UpdateEntityRequest
impl Unpin for UpdateEntityRequest
impl UnsafeUnpin for UpdateEntityRequest
impl UnwindSafe for UpdateEntityRequest
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