pub struct GoogleCloudDialogflowCxV3FormParameterFillBehavior {
pub initial_prompt_fulfillment: Option<GoogleCloudDialogflowCxV3Fulfillment>,
pub reprompt_event_handlers: Option<Vec<GoogleCloudDialogflowCxV3EventHandler>>,
}
Expand description
Configuration for how the filling of a parameter should be handled.
This type is not used in any activity, and only used as part of another schema.
Fields§
§initial_prompt_fulfillment: Option<GoogleCloudDialogflowCxV3Fulfillment>
Required. The fulfillment to provide the initial prompt that the agent can present to the user in order to fill the parameter.
reprompt_event_handlers: Option<Vec<GoogleCloudDialogflowCxV3EventHandler>>
The handlers for parameter-level events, used to provide reprompt for the parameter or transition to a different page/flow. The supported events are: * sys.no-match-
, where N can be from 1 to 6 * sys.no-match-default
* sys.no-input-
, where N can be from 1 to 6 * sys.no-input-default
* sys.invalid-parameter
initial_prompt_fulfillment
provides the first prompt for the parameter. If the user’s response does not fill the parameter, a no-match/no-input event will be triggered, and the fulfillment associated with the sys.no-match-1
/sys.no-input-1
handler (if defined) will be called to provide a prompt. The sys.no-match-2
/sys.no-input-2
handler (if defined) will respond to the next no-match/no-input event, and so on. A sys.no-match-default
or sys.no-input-default
handler will be used to handle all following no-match/no-input events after all numbered no-match/no-input handlers for the parameter are consumed. A sys.invalid-parameter
handler can be defined to handle the case where the parameter values have been invalidated
by webhook. For example, if the user’s response fill the parameter, however the parameter was invalidated by webhook, the fulfillment associated with the sys.invalid-parameter
handler (if defined) will be called to provide a prompt. If the event handler for the corresponding event can’t be found on the parameter, initial_prompt_fulfillment
will be re-prompted.
Trait Implementations§
Source§impl Clone for GoogleCloudDialogflowCxV3FormParameterFillBehavior
impl Clone for GoogleCloudDialogflowCxV3FormParameterFillBehavior
Source§fn clone(&self) -> GoogleCloudDialogflowCxV3FormParameterFillBehavior
fn clone(&self) -> GoogleCloudDialogflowCxV3FormParameterFillBehavior
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for GoogleCloudDialogflowCxV3FormParameterFillBehavior
impl Default for GoogleCloudDialogflowCxV3FormParameterFillBehavior
Source§fn default() -> GoogleCloudDialogflowCxV3FormParameterFillBehavior
fn default() -> GoogleCloudDialogflowCxV3FormParameterFillBehavior
Source§impl<'de> Deserialize<'de> for GoogleCloudDialogflowCxV3FormParameterFillBehavior
impl<'de> Deserialize<'de> for GoogleCloudDialogflowCxV3FormParameterFillBehavior
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 GoogleCloudDialogflowCxV3FormParameterFillBehavior
Auto Trait Implementations§
impl Freeze for GoogleCloudDialogflowCxV3FormParameterFillBehavior
impl RefUnwindSafe for GoogleCloudDialogflowCxV3FormParameterFillBehavior
impl Send for GoogleCloudDialogflowCxV3FormParameterFillBehavior
impl Sync for GoogleCloudDialogflowCxV3FormParameterFillBehavior
impl Unpin for GoogleCloudDialogflowCxV3FormParameterFillBehavior
impl UnwindSafe for GoogleCloudDialogflowCxV3FormParameterFillBehavior
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