Struct oxide_spark_utils::config::SensorConfig
source · pub struct SensorConfig {
pub freq: u32,
pub kind: SensorKind,
pub metrics: HashMap<MeasureKind, String>,
pub id: String,
}Fields§
§freq: u32§kind: SensorKind§metrics: HashMap<MeasureKind, String>§id: StringTrait Implementations§
source§impl Clone for SensorConfig
impl Clone for SensorConfig
source§fn clone(&self) -> SensorConfig
fn clone(&self) -> SensorConfig
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 SensorConfig
impl Debug for SensorConfig
source§impl<'de> Deserialize<'de> for SensorConfig
impl<'de> Deserialize<'de> for SensorConfig
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 RefUnwindSafe for SensorConfig
impl Send for SensorConfig
impl Sync for SensorConfig
impl Unpin for SensorConfig
impl UnwindSafe for SensorConfig
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