pub struct Sensor {
pub odata: OData,
pub id: Option<String>,
pub name: Option<String>,
pub physical_context: Option<PhysicalContext>,
pub reading: Option<f64>,
pub reading_type: Option<ReadingType>,
pub reading_units: Option<String>,
pub reading_range_max: Option<f64>,
pub reading_range_min: Option<f64>,
pub status: Option<ResourceStatus>,
}Fields§
§odata: OData§id: Option<String>§name: Option<String>§physical_context: Option<PhysicalContext>§reading: Option<f64>§reading_type: Option<ReadingType>§reading_units: Option<String>§reading_range_max: Option<f64>§reading_range_min: Option<f64>§status: Option<ResourceStatus>Trait 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
Source§impl From<Sensor> for Temperature
impl From<Sensor> for Temperature
Source§impl IsResource for Sensor
impl IsResource for Sensor
Auto Trait Implementations§
impl Freeze for Sensor
impl RefUnwindSafe for Sensor
impl Send for Sensor
impl Sync for Sensor
impl Unpin for Sensor
impl UnsafeUnpin 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