Struct google_api_proto::google::actions::sdk::v2::interactionmodel::GlobalIntentEvent
source · pub struct GlobalIntentEvent {
pub transition_to_scene: String,
pub handler: Option<EventHandler>,
}
Expand description
Defines a global intent handler. Global intent events are scoped to the entire Actions project and may be overridden by intent handlers in a scene. Intent names must be unique within an Actions project.
Global intents can be matched anytime during a session, allowing users to access common flows like “get help” or “go back home.” They can also be used to deep link users into specific flows when they invoke an Action.
Note, the intent name is specified in the name of the file.
Fields§
§transition_to_scene: String
Optional. Destination scene which the conversation should jump to. The state of the current scene is destroyed on the transition.
handler: Option<EventHandler>
Optional. Event handler which is triggered when the intent is matched. Should execute before transitioning to the destination scene. Useful to generate Prompts in response to events.
Trait Implementations§
source§impl Clone for GlobalIntentEvent
impl Clone for GlobalIntentEvent
source§fn clone(&self) -> GlobalIntentEvent
fn clone(&self) -> GlobalIntentEvent
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GlobalIntentEvent
impl Debug for GlobalIntentEvent
source§impl Default for GlobalIntentEvent
impl Default for GlobalIntentEvent
source§impl Message for GlobalIntentEvent
impl Message for GlobalIntentEvent
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 GlobalIntentEvent
impl PartialEq for GlobalIntentEvent
source§fn eq(&self, other: &GlobalIntentEvent) -> bool
fn eq(&self, other: &GlobalIntentEvent) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for GlobalIntentEvent
Auto Trait Implementations§
impl Freeze for GlobalIntentEvent
impl RefUnwindSafe for GlobalIntentEvent
impl Send for GlobalIntentEvent
impl Sync for GlobalIntentEvent
impl Unpin for GlobalIntentEvent
impl UnwindSafe for GlobalIntentEvent
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