Struct google_api_proto::google::actions::sdk::v2::interactionmodel::slot::PromptSettings
source · pub struct PromptSettings {
pub initial_prompt: Option<EventHandler>,
pub no_match_prompt1: Option<EventHandler>,
pub no_match_prompt2: Option<EventHandler>,
pub no_match_final_prompt: Option<EventHandler>,
pub no_input_prompt1: Option<EventHandler>,
pub no_input_prompt2: Option<EventHandler>,
pub no_input_final_prompt: Option<EventHandler>,
}
Expand description
A single place where slot prompts are defined.
Fields§
§initial_prompt: Option<EventHandler>
Prompt for the slot value itself. Example: “What size did you want?”
no_match_prompt1: Option<EventHandler>
Prompt to give when the user’s input does not match the expected value type for the slot for the first time. Example: “Sorry, I didn’t get that.”
no_match_prompt2: Option<EventHandler>
Prompt to give when the user’s input does not match the expected value type for the slot for the second time. Example: “Sorry, I didn’t get that.”
no_match_final_prompt: Option<EventHandler>
Prompt to give when the user’s input does not match the expected value type for the slot for the last time. Example: “Sorry, I didn’t get that.”
no_input_prompt1: Option<EventHandler>
Prompt to give when the user does not provide an input for the first time. Example: “Sorry, I didn’t get that.”
no_input_prompt2: Option<EventHandler>
Prompt to give when the user does not provide an input for the second time. Example: “Sorry, I didn’t get that.”
no_input_final_prompt: Option<EventHandler>
Prompt to give when the user does not provide an input for the last time. Example: “Sorry, I didn’t get that.”
Trait Implementations§
source§impl Clone for PromptSettings
impl Clone for PromptSettings
source§fn clone(&self) -> PromptSettings
fn clone(&self) -> PromptSettings
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PromptSettings
impl Debug for PromptSettings
source§impl Default for PromptSettings
impl Default for PromptSettings
source§impl Message for PromptSettings
impl Message for PromptSettings
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for PromptSettings
impl PartialEq for PromptSettings
source§fn eq(&self, other: &PromptSettings) -> bool
fn eq(&self, other: &PromptSettings) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PromptSettings
Auto Trait Implementations§
impl Freeze for PromptSettings
impl RefUnwindSafe for PromptSettings
impl Send for PromptSettings
impl Sync for PromptSettings
impl Unpin for PromptSettings
impl UnwindSafe for PromptSettings
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request