Struct gapi_grpc::google::cloud::dialogflow::cx::v3beta1::Webhook[][src]

pub struct Webhook {
    pub name: String,
    pub display_name: String,
    pub timeout: Option<Duration>,
    pub disabled: bool,
    pub webhook: Option<Webhook>,
}

Webhooks host the developer’s business logic. During a session, webhooks allow the developer to use the data extracted by Dialogflow’s natural language processing to generate dynamic responses, validate collected data, or trigger actions on the backend.

Fields

name: String

The unique identifier of the webhook. Required for the [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3beta1.Webhooks.UpdateWebhook] method. [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3beta1.Webhooks.CreateWebhook] populates the name automatically. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/webhooks/<Webhook ID>.

display_name: String

Required. The human-readable name of the webhook, unique within the agent.

timeout: Option<Duration>

Webhook execution timeout. Execution is considered failed if Dialogflow doesn’t receive a response from webhook at the end of the timeout period. Defaults to 5 seconds, maximum allowed timeout is 30 seconds.

disabled: bool

Indicates whether the webhook is disabled.

webhook: Option<Webhook>

Required. The webhook configuration.

Trait Implementations

impl Clone for Webhook[src]

impl Debug for Webhook[src]

impl Default for Webhook[src]

impl Message for Webhook[src]

impl PartialEq<Webhook> for Webhook[src]

impl StructuralPartialEq for Webhook[src]

Auto Trait Implementations

impl RefUnwindSafe for Webhook

impl Send for Webhook

impl Sync for Webhook

impl Unpin for Webhook

impl UnwindSafe for Webhook

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]