pub struct ReportStateAndNotificationRequest {
pub agent_user_id: Option<String>,
pub event_id: Option<String>,
pub follow_up_token: Option<String>,
pub payload: Option<StateAndNotificationPayload>,
pub request_id: Option<String>,
}Expand description
Request type for the ReportStateAndNotification call. It may include states, notifications, or both. States and notifications are defined per device_id (for example, “123” and “456” in the following example). Example: json { "requestId": "ff36a3cc-ec34-11e6-b1a0-64510650abcf", "agentUserId": "1234", "payload": { "devices": { "states": { "123": { "on": true }, "456": { "on": true, "brightness": 10 } }, } } }
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- report state and notification devices (request)
Fields§
§agent_user_id: Option<String>Required. Third-party user ID.
event_id: Option<String>Unique identifier per event (for example, a doorbell press).
follow_up_token: Option<String>Deprecated.
payload: Option<StateAndNotificationPayload>Required. State of devices to update and notification metadata for devices.
request_id: Option<String>Request ID used for debugging.
Trait Implementations§
Source§impl Clone for ReportStateAndNotificationRequest
impl Clone for ReportStateAndNotificationRequest
Source§fn clone(&self) -> ReportStateAndNotificationRequest
fn clone(&self) -> ReportStateAndNotificationRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more