pub struct Sensor {
pub config: Option<SensorConfig>,
pub etag: Option<String>,
pub lastannounced: Option<String>,
pub lastseen: Option<String>,
pub manufacturername: String,
pub modelid: String,
pub name: String,
pub state: HashMap<String, Value>,
pub swversion: Option<String>,
pub tipe: String,
pub uniqueid: String,
/* private fields */
}Expand description
Sensor info
Fields§
§config: Option<SensorConfig>§etag: Option<String>§lastannounced: Option<String>§lastseen: Option<String>§manufacturername: String§modelid: String§name: String§state: HashMap<String, Value>§swversion: Option<String>§tipe: String§uniqueid: StringTrait Implementations§
Source§impl<'de> Deserialize<'de> for Sensor
impl<'de> Deserialize<'de> for Sensor
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 Sensor
impl RefUnwindSafe for Sensor
impl Send for Sensor
impl Sync for Sensor
impl Unpin for Sensor
impl UnwindSafe for Sensor
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