Struct google_api_proto::google::actions::sdk::v2::interactionmodel::prompt::static_prompt::static_prompt_candidate::StaticPromptResponse
source · pub struct StaticPromptResponse {
pub first_simple: Option<StaticSimplePrompt>,
pub content: Option<StaticContentPrompt>,
pub last_simple: Option<StaticSimplePrompt>,
pub suggestions: Vec<Suggestion>,
pub link: Option<StaticLinkPrompt>,
pub override: bool,
pub canvas: Option<StaticCanvasPrompt>,
}
Expand description
Represents structured responses to send to the user, such as text, speech, cards, canvas data, suggestion chips, etc.
Fields§
§first_simple: Option<StaticSimplePrompt>
Optional. The first voice and text-only response.
content: Option<StaticContentPrompt>
Optional. A content like a card, list or media to display to the user.
last_simple: Option<StaticSimplePrompt>
Optional. The last voice and text-only response.
suggestions: Vec<Suggestion>
Optional. Suggestions to be displayed to the user which will always
appear at the end of the response. If the append
field in the
containing prompt is true
the titles defined in this field will be
added to titles defined in any previously defined suggestions prompts
and duplicate values will be removed.
link: Option<StaticLinkPrompt>
Optional. An additional suggestion chip that can link out to the associated app
or site.
The chip will be rendered with the title “Open
override: bool
Optional. Mode for how this messages should be merged with previously defined
messages.
true
will clear all previously defined messages (first and last
simple, content, suggestions link and canvas) and add messages defined
in this prompt. false
will add messages defined in this prompt to
messages defined in previous responses. Setting this field to false
will also enable appending to some fields inside Simple prompts, the
Suggestions prompt and the Canvas prompt (part of the Content prompt).
The Content and Link messages will always be overwritten if defined in
the prompt. Default value is false
.
canvas: Option<StaticCanvasPrompt>
A response to be used for interactive canvas experience.
Trait Implementations§
source§impl Clone for StaticPromptResponse
impl Clone for StaticPromptResponse
source§fn clone(&self) -> StaticPromptResponse
fn clone(&self) -> StaticPromptResponse
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for StaticPromptResponse
impl Debug for StaticPromptResponse
source§impl Default for StaticPromptResponse
impl Default for StaticPromptResponse
source§impl Message for StaticPromptResponse
impl Message for StaticPromptResponse
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
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<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
.source§impl PartialEq for StaticPromptResponse
impl PartialEq for StaticPromptResponse
source§fn eq(&self, other: &StaticPromptResponse) -> bool
fn eq(&self, other: &StaticPromptResponse) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for StaticPromptResponse
Auto Trait Implementations§
impl Freeze for StaticPromptResponse
impl RefUnwindSafe for StaticPromptResponse
impl Send for StaticPromptResponse
impl Sync for StaticPromptResponse
impl Unpin for StaticPromptResponse
impl UnwindSafe for StaticPromptResponse
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