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>,
}

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).

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

impl Clone for Notification[src]

impl Debug for Notification[src]

impl Default for Notification[src]

impl<'de> Deserialize<'de> for Notification[src]

impl RequestValue for Notification[src]

impl Resource for Notification[src]

impl ResponseResult for Notification[src]

impl Serialize for Notification[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.