Struct google_api_proto::google::actions::sdk::v2::interactionmodel::prompt::StaticCanvasPrompt
source · pub struct StaticCanvasPrompt {
pub url: String,
pub data: Vec<Value>,
pub suppress_mic: bool,
pub send_state_data_to_canvas_app: bool,
pub enable_full_screen: bool,
}
Expand description
Represents a Interactive Canvas response to be sent to the user.
This can be used in conjunction with the first_simple
field in the
containing prompt to speak to the user in addition to displaying a
interactive canvas response.
Fields§
§url: String
Required. URL of the web view to load.
data: Vec<Value>
Optional. JSON data to be passed through to the immersive experience web page as an
event. If the override
field in the containing prompt is false
data
values defined in this Canvas prompt will be added after data values
defined in previous Canvas prompts.
suppress_mic: bool
Optional. A true value means that the mic won’t be opened for capturing input after this immersive response is presented to the user.
send_state_data_to_canvas_app: bool
Optional. If true
, conversation related metadata is included and send back to the
canvas application.
enable_full_screen: bool
Optional. If true
the canvas application occupies the full screen and won’t
have a header at the top. A toast message will also be displayed on the
loading screen that includes the Action’s display name, the developer’s
name, and instructions for exiting the Action. Default value: false
.
Trait Implementations§
source§impl Clone for StaticCanvasPrompt
impl Clone for StaticCanvasPrompt
source§fn clone(&self) -> StaticCanvasPrompt
fn clone(&self) -> StaticCanvasPrompt
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for StaticCanvasPrompt
impl Debug for StaticCanvasPrompt
source§impl Default for StaticCanvasPrompt
impl Default for StaticCanvasPrompt
source§impl Message for StaticCanvasPrompt
impl Message for StaticCanvasPrompt
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 StaticCanvasPrompt
impl PartialEq for StaticCanvasPrompt
source§fn eq(&self, other: &StaticCanvasPrompt) -> bool
fn eq(&self, other: &StaticCanvasPrompt) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for StaticCanvasPrompt
Auto Trait Implementations§
impl Freeze for StaticCanvasPrompt
impl RefUnwindSafe for StaticCanvasPrompt
impl Send for StaticCanvasPrompt
impl Sync for StaticCanvasPrompt
impl Unpin for StaticCanvasPrompt
impl UnwindSafe for StaticCanvasPrompt
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