Struct razberry::sensors::GeneralPurposeBinaryData
[−]
[src]
pub struct GeneralPurposeBinaryData { /* fields omitted */ }
Command class 0x30 (48), payload 1.
Methods
impl GeneralPurposeBinaryData
[src]
fn new(json: &Json) -> GeneralPurposeBinaryData
Construct from JSON.
fn get_status(&self) -> Option<bool>
Get whether the sensor is triggered.
fn get_status_updated(&self) -> Option<Timestamp>
Get when the sensor value was last updated
fn get_json(&self) -> &Json
Get a reference to the underlying Json.
Trait Implementations
impl Clone for GeneralPurposeBinaryData
[src]
fn clone(&self) -> GeneralPurposeBinaryData
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more