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”.
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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