Struct google_gmail1::WatchRequest [] [src]

pub struct WatchRequest {
    pub label_ids: Option<Vec<String>>,
    pub topic_name: Option<String>,
    pub label_filter_action: Option<String>,
}

Set up or update a new push notification watch on this user's mailbox.

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).

Fields

List of label_ids to restrict notifications about. By default, if unspecified, all changes are pushed out. If specified then dictates which labels are required for a push notification to be generated.

A fully qualified Google Cloud Pub/Sub API topic name to publish the events to. This topic name must already exist in Cloud Pub/Sub and you must have already granted gmail "publish" permission on it. For example, "projects/my-project-identifier/topics/my-topic-name" (using the Cloud Pub/Sub "v1" topic naming format).

Note that the "my-project-identifier" portion must exactly match your Google developer project id (the one executing this watch request).

Filtering behavior of labelIds list specified.

Trait Implementations

impl Default for WatchRequest
[src]

[src]

Returns the "default value" for a type. Read more

impl Clone for WatchRequest
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for WatchRequest
[src]

[src]

Formats the value using the given formatter.

impl RequestValue for WatchRequest
[src]