pub struct GoogleCloudDialogflowCxV3EventHandler {
pub event: Option<String>,
pub name: Option<String>,
pub target_flow: Option<String>,
pub target_page: Option<String>,
pub trigger_fulfillment: Option<GoogleCloudDialogflowCxV3Fulfillment>,
}
Expand description
An event handler specifies an event that can be handled during a session. When the specified event happens, the following actions are taken in order: * If there is a trigger_fulfillment
associated with the event, it will be called. * If there is a target_page
associated with the event, the session will transition into the specified page. * If there is a target_flow
associated with the event, the session will transition into the specified flow.
This type is not used in any activity, and only used as part of another schema.
Fields§
§event: Option<String>
Required. The name of the event to handle.
name: Option<String>
Output only. The unique identifier of this event handler.
target_flow: Option<String>
The target flow to transition to. Format: projects//locations//agents//flows/
.
target_page: Option<String>
The target page to transition to. Format: projects//locations//agents//flows//pages/
.
trigger_fulfillment: Option<GoogleCloudDialogflowCxV3Fulfillment>
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.
Trait Implementations§
Source§impl Clone for GoogleCloudDialogflowCxV3EventHandler
impl Clone for GoogleCloudDialogflowCxV3EventHandler
Source§fn clone(&self) -> GoogleCloudDialogflowCxV3EventHandler
fn clone(&self) -> GoogleCloudDialogflowCxV3EventHandler
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for GoogleCloudDialogflowCxV3EventHandler
impl Default for GoogleCloudDialogflowCxV3EventHandler
Source§fn default() -> GoogleCloudDialogflowCxV3EventHandler
fn default() -> GoogleCloudDialogflowCxV3EventHandler
Source§impl<'de> Deserialize<'de> for GoogleCloudDialogflowCxV3EventHandler
impl<'de> Deserialize<'de> for GoogleCloudDialogflowCxV3EventHandler
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 Part for GoogleCloudDialogflowCxV3EventHandler
Auto Trait Implementations§
impl Freeze for GoogleCloudDialogflowCxV3EventHandler
impl RefUnwindSafe for GoogleCloudDialogflowCxV3EventHandler
impl Send for GoogleCloudDialogflowCxV3EventHandler
impl Sync for GoogleCloudDialogflowCxV3EventHandler
impl Unpin for GoogleCloudDialogflowCxV3EventHandler
impl UnwindSafe for GoogleCloudDialogflowCxV3EventHandler
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