pub struct Zone {
pub name: Option<String>,
pub devices: Option<HashMap<String, Value>>,
pub zones: Option<HashMap<String, Zone>>,
}Expand description
A zone within an installation.
Zones can contain devices and/or nested sub-zones, allowing arbitrary grouping hierarchies (e.g. floors, rooms).
Fields§
§name: Option<String>Human-readable zone name.
devices: Option<HashMap<String, Value>>Map of device ID → device metadata for devices in this zone.
Only the map keys (device IDs) are used for discovery; the metadata values are not parsed.
zones: Option<HashMap<String, Zone>>Nested sub-zones within this zone, keyed by zone ID.
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