#air #air-quality #domain #shared #nordic #defines #structures

naq_domain

Domain library for nordic air quality (naq) that defines shared domain data structures

1 unstable release

0.1.0 Sep 18, 2021

#1631 in Data structures

MIT/Apache

5KB
64 lines

Nordic air quality: domain library

Domain library that defines shared domain data structures.

Usage

use naq_domain::SensorData;

fn main() {
    let sensor_data = SensorData {
        co2: 533.0,
        voc: 72.0,
        relative_atmospheric_pressure: 1005.92,
        relative_humidity_percent: 36.5,
        temperature_celsius: 20.42,
        radon_short_term: Some(1),
        radon_long_term: Some(1),
    };
    
    println!("{:#?}", sensor_data);
}

Result

SensorData {
    relative_humidity_percent: 36.5,
    radon_short_term: Some(
        1,
    ),
    radon_long_term: Some(
        1,
    ),
    temperature_celsius: 20.42,
    relative_atmospheric_pressure: 1005.92,
    co2: 533.0,
    voc: 72.0,
}

Dependencies

~32KB