#[non_exhaustive]pub enum ProductData {
Heating {
id: String,
last_seen: Option<DateTime<Utc>>,
created_at: DateTime<Utc>,
properties: Properties,
state: States,
extra: HashMap<String, Value>,
},
HotWater {
id: String,
last_seen: Option<DateTime<Utc>>,
created_at: DateTime<Utc>,
properties: Properties,
state: States,
extra: HashMap<String, Value>,
},
Unknown,
}Expand description
Data about a Hive product.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Heating
A Hive Heating product.
Fields
§
last_seen: Option<DateTime<Utc>>The date and time when the Hive Heating product last communicated with the Hive servers.
§
properties: PropertiesThe properties of the Hive Heating product.
HotWater
A Hive Hot Water product.
Fields
§
last_seen: Option<DateTime<Utc>>The date and time when the Hive Hot Water product last communicated with the Hive servers.
§
properties: PropertiesThe properties of the Hive Hot Water product.
Unknown
A product which is yet to be mapped by the crate.
Trait Implementations§
Source§impl Debug for ProductData
impl Debug for ProductData
Source§impl<'de> Deserialize<'de> for ProductData
impl<'de> Deserialize<'de> for ProductData
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 ProductData
impl RefUnwindSafe for ProductData
impl Send for ProductData
impl Sync for ProductData
impl Unpin for ProductData
impl UnwindSafe for ProductData
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.