pub struct Sample {
pub id: u64,
pub location: Location,
pub sensor: Sensor,
pub sensordatavalues: Vec<SensorDataValue>,
pub timestamp: DateTime<Utc>,
}
Expand description
An environmental sample from one measurement station fetched from the API. It can contain values from multiple onboard sensors.
Fields§
§id: u64
MeasurementID: the ID obtained after uploading data
location: Location
§sensor: Sensor
§sensordatavalues: Vec<SensorDataValue>
Datapoints from multiple sensors
timestamp: DateTime<Utc>
UTC timestamp
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Sample
impl<'de> Deserialize<'de> for Sample
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 Sample
impl RefUnwindSafe for Sample
impl Send for Sample
impl Sync for Sample
impl Unpin for Sample
impl UnwindSafe for Sample
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