pub struct Installation {
pub id: String,
pub name: Option<String>,
pub userid: Option<String>,
pub zones: Option<HashMap<String, Zone>>,
}Expand description
A Rointe installation (home, building, or other location) as returned by
the installations2 Firebase endpoint.
The id field is populated by the client from the Firebase map key — it
is not present in the JSON value itself and is skipped during deserialization.
Fields§
§id: StringFirebase map key for this installation; populated by the client after parsing.
name: Option<String>Human-readable installation name as set in the Rointe app.
userid: Option<String>Firebase user ID of the installation owner.
zones: Option<HashMap<String, Zone>>Top-level zones within this installation, keyed by zone ID.
Zones can be nested — use crate::RointeClient::discover_devices
to recursively collect all device IDs.
Trait Implementations§
Source§impl Clone for Installation
impl Clone for Installation
Source§fn clone(&self) -> Installation
fn clone(&self) -> Installation
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 Installation
impl Debug for Installation
Source§impl Default for Installation
impl Default for Installation
Source§fn default() -> Installation
fn default() -> Installation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Installation
impl<'de> Deserialize<'de> for Installation
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 Installation
impl RefUnwindSafe for Installation
impl Send for Installation
impl Sync for Installation
impl Unpin for Installation
impl UnsafeUnpin for Installation
impl UnwindSafe for Installation
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