pub struct Notification {
pub custom_attributes: Option<HashMap<String, String>>,
pub etag: Option<String>,
pub event_types: Option<Vec<String>>,
pub id: Option<String>,
pub kind: Option<String>,
pub object_name_prefix: Option<String>,
pub payload_format: Option<String>,
pub self_link: Option<String>,
pub topic: Option<String>,
}
Expand description
A subscription to receive Google PubSub notifications.
§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).
- delete notifications (none)
- get notifications (response)
- insert notifications (request|response)
- list notifications (none)
Fields§
§custom_attributes: Option<HashMap<String, String>>
An optional list of additional attributes to attach to each Cloud PubSub message published for this notification subscription.
etag: Option<String>
HTTP 1.1 Entity tag for this subscription notification.
event_types: Option<Vec<String>>
If present, only send notifications about listed event types. If empty, sent notifications for all event types.
id: Option<String>
The ID of the notification.
kind: Option<String>
The kind of item this is. For notifications, this is always storage#notification.
object_name_prefix: Option<String>
If present, only apply this notification configuration to object names that begin with this prefix.
payload_format: Option<String>
The desired content of the Payload.
self_link: Option<String>
The canonical URL of this notification.
topic: Option<String>
The Cloud PubSub topic to which this subscription publishes. Formatted as: ‘//pubsub.googleapis.com/projects/{project-identifier}/topics/{my-topic}’
Trait Implementations§
Source§impl Clone for Notification
impl Clone for Notification
Source§fn clone(&self) -> Notification
fn clone(&self) -> Notification
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for Notification
impl Debug for Notification
Source§impl Default for Notification
impl Default for Notification
Source§fn default() -> Notification
fn default() -> Notification
Source§impl<'de> Deserialize<'de> for Notification
impl<'de> Deserialize<'de> for Notification
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>,
Source§impl Serialize for Notification
impl Serialize for Notification
impl RequestValue for Notification
impl Resource for Notification
impl ResponseResult for Notification
Auto Trait Implementations§
impl Freeze for Notification
impl RefUnwindSafe for Notification
impl Send for Notification
impl Sync for Notification
impl Unpin for Notification
impl UnwindSafe for Notification
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