Struct gapi_grpc::google::cloud::dialogflow::v2beta1::NotificationConfig[][src]

pub struct NotificationConfig {
    pub topic: String,
    pub message_format: i32,
}

Defines notification behavior.

Fields

topic: String

Name of the Pub/Sub topic to publish conversation events like [CONVERSATION_STARTED][google.cloud.dialogflow.v2beta1.ConversationEvent.Type.CONVERSATION_STARTED] as serialized [ConversationEvent][google.cloud.dialogflow.v2beta1.ConversationEvent] protos.

Notification works for phone calls, if this topic either is in the same project as the conversation or you grant service-<Conversation Project Number>@gcp-sa-dialogflow.iam.gserviceaccount.com the Dialogflow Service Agent role in the topic project.

Format: projects/<Project ID>/locations/<Location ID>/topics/<Topic ID>.

message_format: i32

Format of message.

Implementations

impl NotificationConfig[src]

pub fn message_format(&self) -> MessageFormat[src]

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

pub fn set_message_format(&mut self, value: MessageFormat)[src]

Sets message_format to the provided enum value.

Trait Implementations

impl Clone for NotificationConfig[src]

impl Debug for NotificationConfig[src]

impl Default for NotificationConfig[src]

impl Message for NotificationConfig[src]

impl PartialEq<NotificationConfig> for NotificationConfig[src]

impl StructuralPartialEq for NotificationConfig[src]

Auto Trait Implementations

impl RefUnwindSafe for NotificationConfig

impl Send for NotificationConfig

impl Sync for NotificationConfig

impl Unpin for NotificationConfig

impl UnwindSafe for NotificationConfig

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]