pub struct GoogleCloudDialogflowCxV3Webhook {
pub disabled: Option<bool>,
pub display_name: Option<String>,
pub generic_web_service: Option<GoogleCloudDialogflowCxV3WebhookGenericWebService>,
pub name: Option<String>,
pub service_directory: Option<GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig>,
pub timeout: Option<Duration>,
}
Expand description
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.
§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).
- locations agents webhooks create projects (request|response)
- locations agents webhooks get projects (response)
- locations agents webhooks patch projects (request|response)
Fields§
§disabled: Option<bool>
Indicates whether the webhook is disabled.
display_name: Option<String>
Required. The human-readable name of the webhook, unique within the agent.
generic_web_service: Option<GoogleCloudDialogflowCxV3WebhookGenericWebService>
Configuration for a generic web service.
name: Option<String>
The unique identifier of the webhook. Required for the Webhooks.UpdateWebhook method. Webhooks.CreateWebhook populates the name automatically. Format: projects//locations//agents//webhooks/
.
service_directory: Option<GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig>
Configuration for a Service Directory service.
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.
Trait Implementations§
Source§impl Clone for GoogleCloudDialogflowCxV3Webhook
impl Clone for GoogleCloudDialogflowCxV3Webhook
Source§fn clone(&self) -> GoogleCloudDialogflowCxV3Webhook
fn clone(&self) -> GoogleCloudDialogflowCxV3Webhook
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for GoogleCloudDialogflowCxV3Webhook
impl Default for GoogleCloudDialogflowCxV3Webhook
Source§fn default() -> GoogleCloudDialogflowCxV3Webhook
fn default() -> GoogleCloudDialogflowCxV3Webhook
Source§impl<'de> Deserialize<'de> for GoogleCloudDialogflowCxV3Webhook
impl<'de> Deserialize<'de> for GoogleCloudDialogflowCxV3Webhook
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl RequestValue for GoogleCloudDialogflowCxV3Webhook
impl ResponseResult for GoogleCloudDialogflowCxV3Webhook
Auto Trait Implementations§
impl Freeze for GoogleCloudDialogflowCxV3Webhook
impl RefUnwindSafe for GoogleCloudDialogflowCxV3Webhook
impl Send for GoogleCloudDialogflowCxV3Webhook
impl Sync for GoogleCloudDialogflowCxV3Webhook
impl Unpin for GoogleCloudDialogflowCxV3Webhook
impl UnwindSafe for GoogleCloudDialogflowCxV3Webhook
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more