pub struct Zone {
pub external_id: Option<String>,
pub id: String,
pub integration_id: String,
pub metadata: Option<HashMap>,
pub name: LocalizedString,
pub parent_zone_id: Option<String>,
}Expand description
A logical or physical space (recursive for hierarchy).
Example: Floor 1 > Living Room > TV NookJSON schema
{
"description": "A logical or physical space (recursive for hierarchy).\n\nExample: Floor 1 > Living Room > TV Nook",
"type": "object",
"required": [
"id",
"integration_id",
"name"
],
"properties": {
"external_id": {
"description": "External ID from the integration.",
"type": [
"string",
"null"
]
},
"id": {
"description": "Unique identifier (ULID).",
"type": "string"
},
"integration_id": {
"description": "Integration this zone belongs to.",
"type": "string"
},
"metadata": {
"oneOf": [
{
"type": "null"
},
{
"oneOf": [
{
"$ref": "#/components/schemas/HashMap"
}
]
}
]
},
"name": {
"$ref": "#/components/schemas/LocalizedString"
},
"parent_zone_id": {
"description": "Parent zone for hierarchy.",
"type": [
"string",
"null"
]
}
}
}Fields§
§external_id: Option<String>External ID from the integration.
id: StringUnique identifier (ULID).
integration_id: StringIntegration this zone belongs to.
metadata: Option<HashMap>§name: LocalizedString§parent_zone_id: Option<String>Parent zone for hierarchy.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Zone
impl<'de> Deserialize<'de> for Zone
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 Zone
impl RefUnwindSafe for Zone
impl Send for Zone
impl Sync for Zone
impl Unpin for Zone
impl UnsafeUnpin for Zone
impl UnwindSafe for Zone
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