[][src]Struct google_storage1::Notification

pub struct Notification {
    pub kind: Option<String>,
    pub custom_attributes: Option<HashMap<String, String>>,
    pub id: Option<String>,
    pub topic: Option<String>,
    pub etag: Option<String>,
    pub event_types: Option<Vec<String>>,
    pub object_name_prefix: Option<String>,
    pub payload_format: Option<String>,
    pub self_link: 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

kind: Option<String>

The kind of item this is. For notifications, this is always storage#notification.

custom_attributes: Option<HashMap<String, String>>

An optional list of additional attributes to attach to each Cloud PubSub message published for this notification subscription.

id: Option<String>

The ID of the notification.

topic: Option<String>

The Cloud PubSub topic to which this subscription publishes. Formatted as: '//pubsub.googleapis.com/projects/{project-identifier}/topics/{my-topic}'

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.

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.

Trait Implementations

impl Resource for Notification[src]

impl ResponseResult for Notification[src]

impl RequestValue for Notification[src]

impl Default for Notification[src]

impl Clone for Notification[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Notification[src]

impl Serialize for Notification[src]

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

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> 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.

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

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

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

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

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