pub struct Channel {
pub resource_uri: Option<String>,
pub kind: Option<String>,
pub resource_id: Option<String>,
pub id: Option<String>,
pub token: Option<String>,
pub params: Option<HashMap<String, String>>,
pub expiration: Option<String>,
pub address: Option<String>,
pub type_: Option<String>,
pub payload: Option<bool>,
}
Expand description
An 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 activities (request|response)
- stop channels (request)
Fields§
§resource_uri: Option<String>
A version-specific identifier for the watched resource.
kind: Option<String>
Identifies this as a notification channel used to watch for changes to a resource, which is “api#channel”.
resource_id: Option<String>
An opaque ID that identifies the resource being watched on this channel. Stable across different API versions.
id: Option<String>
A UUID or similar unique string that identifies this channel.
token: Option<String>
An arbitrary string delivered to the target address with each notification delivered over this channel. Optional.
params: Option<HashMap<String, String>>
Additional parameters controlling delivery channel behavior. Optional.
expiration: Option<String>
Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional.
address: Option<String>
The address where notifications are delivered for this channel.
type_: Option<String>
The type of delivery mechanism used for this channel.
payload: Option<bool>
A Boolean value to indicate whether payload is wanted. Optional.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Channel
impl<'de> Deserialize<'de> for Channel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl RequestValue for Channel
impl Resource for Channel
impl ResponseResult for Channel
Auto Trait Implementations§
impl Freeze for Channel
impl RefUnwindSafe for Channel
impl Send for Channel
impl Sync for Channel
impl Unpin for Channel
impl UnwindSafe for Channel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more