Struct razberry::response::PartialGatewayState
[−]
[src]
pub struct PartialGatewayState { /* fields omitted */ }
A response from Razberry's /ZWaveAPI/Data/{timestamp} endpoint. These responses contain only updates that ocurred after the requested timestamp.
Methods
impl PartialGatewayState
[src]
fn build(
raw_json: &str,
request_time: Timestamp
) -> Result<PartialGatewayState, ResponseError>
raw_json: &str,
request_time: Timestamp
) -> Result<PartialGatewayState, ResponseError>
Build from a raw JSON string.
fn get_json(&self) -> &Json
Get a reference to the underlying Json.
fn get_start_timestamp(&self) -> Timestamp
Get the start of the state change range (URL parameter)
fn get_end_timestamp(&self) -> Timestamp
Get the end of the state change range (time payload was generated)
Trait Implementations
impl Clone for PartialGatewayState
[src]
fn clone(&self) -> PartialGatewayState
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