Struct gapi_grpc::google::cloud::dialogflow::cx::v3::EventHandler[][src]

pub struct EventHandler {
    pub name: String,
    pub event: String,
    pub trigger_fulfillment: Option<Fulfillment>,
    pub target: Option<Target>,
}

An event handler specifies an [event][google.cloud.dialogflow.cx.v3.EventHandler.event] that can be handled during a session. When the specified event happens, the following actions are taken in order:

Fields

name: String

Output only. The unique identifier of this event handler.

event: String

Required. The name of the event to handle.

trigger_fulfillment: Option<Fulfillment>

The fulfillment to call when the event occurs. Handling webhook errors with a fulfillment enabled with webhook could cause infinite loop. It is invalid to specify such fulfillment for a handler handling webhooks.

target: Option<Target>

The target to transition to, either a page in the same host flow (the flow that owns this [TransitionRoute][google.cloud.dialogflow.cx.v3.TransitionRoute]), or another flow in the same agent.

Trait Implementations

impl Clone for EventHandler[src]

impl Debug for EventHandler[src]

impl Default for EventHandler[src]

impl Message for EventHandler[src]

impl PartialEq<EventHandler> for EventHandler[src]

impl StructuralPartialEq for EventHandler[src]

Auto Trait Implementations

impl RefUnwindSafe for EventHandler

impl Send for EventHandler

impl Sync for EventHandler

impl Unpin for EventHandler

impl UnwindSafe for EventHandler

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]