Struct razberry::response::GatewayState
[−]
[src]
pub struct GatewayState { /* fields omitted */ }
A response from Razberry's /ZWaveAPI/Data endpoint. These responses contain the entire state of the gateway at the time of the request.
Methods
impl GatewayState
[src]
fn build(raw_json: &str) -> Result<GatewayState, ResponseError>
Build from a raw JSON string.
fn get_json(&self) -> &Json
Get a reference to the underlying Json.
fn get_end_timestamp(&self) -> Timestamp
Get the end of the state change range.
fn merge(
&mut self,
partial_state: &PartialGatewayState
) -> Result<(), ResponseError>
&mut self,
partial_state: &PartialGatewayState
) -> Result<(), ResponseError>
TODO DOC
fn get_burglar_alarm(
&self,
device: u8,
instance: u8
) -> Option<BurglarAlarmData>
&self,
device: u8,
instance: u8
) -> Option<BurglarAlarmData>
Get "burglar alarm" sensor data from the results, if present.
fn get_general_purpose_binary(
&self,
device: u8,
instance: u8
) -> Option<GeneralPurposeBinaryData>
&self,
device: u8,
instance: u8
) -> Option<GeneralPurposeBinaryData>
Get the "general purpose" (0x01) binary sensor (0x30) data, if present.
Trait Implementations
impl Clone for GatewayState
[src]
fn clone(&self) -> GatewayState
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