pub struct SensorElement {
pub sensor_metadata: Option<SensorMetadata>,
pub sensor_report: Option<Vec<SensorReport>>,
}Expand description
A sensor element grouping sensor metadata and reports.
Fields§
§sensor_metadata: Option<SensorMetadata>Sensor device metadata
sensor_report: Option<Vec<SensorReport>>List of sensor reports
Trait Implementations§
Source§impl Clone for SensorElement
impl Clone for SensorElement
Source§fn clone(&self) -> SensorElement
fn clone(&self) -> SensorElement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SensorElement
impl Debug for SensorElement
Source§impl<'de> Deserialize<'de> for SensorElement
impl<'de> Deserialize<'de> for SensorElement
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 SensorElement
impl PartialEq for SensorElement
Source§fn eq(&self, other: &SensorElement) -> bool
fn eq(&self, other: &SensorElement) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SensorElement
impl Serialize for SensorElement
impl StructuralPartialEq for SensorElement
Auto Trait Implementations§
impl Freeze for SensorElement
impl RefUnwindSafe for SensorElement
impl Send for SensorElement
impl Sync for SensorElement
impl Unpin for SensorElement
impl UnsafeUnpin for SensorElement
impl UnwindSafe for SensorElement
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