Struct google_drive2::api::Channel
source · pub struct Channel {
pub address: Option<String>,
pub expiration: Option<i64>,
pub id: Option<String>,
pub kind: Option<String>,
pub params: Option<HashMap<String, String>>,
pub payload: Option<bool>,
pub resource_id: Option<String>,
pub resource_uri: Option<String>,
pub token: Option<String>,
pub type_: Option<String>,
}
Expand description
A notification channel used to watch for resource changes.
§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).
- watch changes (request|response)
- stop channels (request)
- watch files (request|response)
Fields§
§address: Option<String>
The address where notifications are delivered for this channel.
expiration: Option<i64>
Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional.
id: Option<String>
A UUID or similar unique string that identifies this channel.
kind: Option<String>
Identifies this as a notification channel used to watch for changes to a resource, which is api#channel
.
params: Option<HashMap<String, String>>
Additional parameters controlling delivery channel behavior. Optional.
payload: Option<bool>
A Boolean value to indicate whether payload is wanted. Optional.
resource_id: Option<String>
An opaque ID that identifies the resource being watched on this channel. Stable across different API versions.
resource_uri: Option<String>
A version-specific identifier for the watched resource.
token: Option<String>
An arbitrary string delivered to the target address with each notification delivered over this channel. Optional.
type_: Option<String>
The type of delivery mechanism used for this channel. Valid values are “web_hook” or “webhook”.