Struct luftpost::sensor::Sensor
[−]
[src]
pub struct Sensor { pub name: String, pub id: String, pub ui_uri: String, pub data_uri: String, pub threshold_pm10: Option<f32>, pub threshold_pm2: Option<f32>, pub notification_condition: Option<NotificationCondition>, }
Fields
name: String
id: String
ui_uri: String
data_uri: String
threshold_pm10: Option<f32>
threshold_pm2: Option<f32>
notification_condition: Option<NotificationCondition>
Methods
impl Sensor
[src]
fn new<T: Into<String>>(name: T, id: T, ui_uri: T, data_uri: T) -> Sensor
fn read_measurement(
self,
response: FutureResponse
) -> Box<Future<Item = Measurement, Error = Error>>
self,
response: FutureResponse
) -> Box<Future<Item = Measurement, Error = Error>>