Struct google_storage1::api::Notification [−][src]
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
Returns the “default value” for a type. Read more
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Notification
impl Send for Notification
impl Sync for Notification
impl Unpin for Notification
impl UnwindSafe for Notification
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more