pub fn new(sensor: Box<dyn Sensor>) -> JSONExporter {
        JSONExporter {
            sensor,
            reports: Vec::new(),
        }
    }
/// Instantiates and returns a new JSONExporter
Instantiates and returns a new JSONExporter
Instantiates and returns a new JSONExporter
pub fn new(sensor: Box<dyn Sensor>) -> JSONExporter {
        JSONExporter {
            sensor,
            reports: Vec::new(),
        }
    }
pub fn new ( sensor : Box < dyn Sensor > ) -> JSONExporter { JSONExporter { sensor , reports : Vec :: new ( ) , } }
Instantiates and returns a new JSONExporter
Instantiates and returns a new JSONExporter
sensor
Box<dyn Sensor>
sensor
Box<dyn Sensor>