Struct gapi_grpc::google::home::graph::v1::QueryResponse[][src]

pub struct QueryResponse {
    pub request_id: String,
    pub payload: Option<QueryResponsePayload>,
}

Response type for the Query call. This should follow the same format as the Google smart home action.devices.QUERY response.

Example

{
  "requestId": "ff36a3cc-ec34-11e6-b1a0-64510650abcf",
  "payload": {
    "devices": {
      "123": {
        "on": true,
        "online": true
      },
      "456": {
        "on": true,
        "online": true,
        "brightness": 80,
        "color": {
          "name": "cerulean",
          "spectrumRGB": 31655
        }
      }
    }
  }
}

Fields

request_id: String

Request ID used for debugging. Copied from the request.

payload: Option<QueryResponsePayload>

Device states for the devices given in the request.

Trait Implementations

impl Clone for QueryResponse[src]

impl Debug for QueryResponse[src]

impl Default for QueryResponse[src]

impl Message for QueryResponse[src]

impl PartialEq<QueryResponse> for QueryResponse[src]

impl StructuralPartialEq for QueryResponse[src]

Auto Trait Implementations

impl RefUnwindSafe for QueryResponse

impl Send for QueryResponse

impl Sync for QueryResponse

impl Unpin for QueryResponse

impl UnwindSafe for QueryResponse

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]