Struct islabtech_upw_sensor_v1::measurements::Measurement
source · pub struct Measurement {
pub timestamp: DateTime<Utc>,
pub conductivity: Option<Conductivity>,
pub temperature: Option<Temperature>,
}Expand description
measurement point
Both conductivity and temperature can be a successful or failed measurement, hence the Option types.
There is a success-guaranteed counterpart of this type SuccessfulMeasurement
Fields§
§timestamp: DateTime<Utc>§conductivity: Option<Conductivity>§temperature: Option<Temperature>Trait Implementations§
source§impl Clone for Measurement
impl Clone for Measurement
source§fn clone(&self) -> Measurement
fn clone(&self) -> Measurement
Returns a copy 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 Measurement
impl Debug for Measurement
source§impl<'de> Deserialize<'de> for Measurement
impl<'de> Deserialize<'de> for Measurement
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 PartialEq for Measurement
impl PartialEq for Measurement
source§fn eq(&self, other: &Measurement) -> bool
fn eq(&self, other: &Measurement) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for Measurement
impl PartialOrd for Measurement
source§fn partial_cmp(&self, other: &Measurement) -> Option<Ordering>
fn partial_cmp(&self, other: &Measurement) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Serialize for Measurement
impl Serialize for Measurement
impl StructuralPartialEq for Measurement
Auto Trait Implementations§
impl Freeze for Measurement
impl RefUnwindSafe for Measurement
impl Send for Measurement
impl Sync for Measurement
impl Unpin for Measurement
impl UnwindSafe for Measurement
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