Struct gapi_grpc::google::apps::alertcenter::v1beta1::settings::notification::CloudPubsubTopic[][src]

pub struct CloudPubsubTopic {
    pub topic_name: String,
    pub payload_format: i32,
}

A reference to a Cloud Pubsub topic.

To register for notifications, the owner of the topic must grant alerts-api-push-notifications@system.gserviceaccount.com the projects.topics.publish permission.

Fields

topic_name: String

The name field of a Cloud Pubsub [Topic] (https://cloud.google.com/pubsub/docs/reference/rest/v1/projects.topics#Topic).

payload_format: i32

Optional. The format of the payload that would be sent. If not specified the format will be JSON.

Implementations

impl CloudPubsubTopic[src]

pub fn payload_format(&self) -> PayloadFormat[src]

Returns the enum value of payload_format, or the default if the field is set to an invalid enum value.

pub fn set_payload_format(&mut self, value: PayloadFormat)[src]

Sets payload_format to the provided enum value.

Trait Implementations

impl Clone for CloudPubsubTopic[src]

impl Debug for CloudPubsubTopic[src]

impl Default for CloudPubsubTopic[src]

impl Message for CloudPubsubTopic[src]

impl PartialEq<CloudPubsubTopic> for CloudPubsubTopic[src]

impl StructuralPartialEq for CloudPubsubTopic[src]

Auto Trait Implementations

impl RefUnwindSafe for CloudPubsubTopic

impl Send for CloudPubsubTopic

impl Sync for CloudPubsubTopic

impl Unpin for CloudPubsubTopic

impl UnwindSafe for CloudPubsubTopic

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> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> IntoRequest<T> for 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<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]