Struct google_dialogflow2::GoogleCloudDialogflowV2EventInput [−][src]
pub struct GoogleCloudDialogflowV2EventInput { pub language_code: Option<String>, pub name: Option<String>, pub parameters: Option<HashMap<String, String>>, }
Events allow for matching intents by event name instead of the natural
language input. For instance, input <event: { name: “welcome_event”, parameters: { name: “Sam” } }>
can trigger a personalized welcome response.
The parameter name
may be used by the agent in the response:
“Hello #welcome_event.name! What can I do for you today?”
.
This type is not used in any activity, and only used as part of another schema.
Fields
language_code: Option<String>
Required. The language of this query. See Language Support for a list of the currently supported language codes. Note that queries in the same session do not necessarily need to specify the same language.
name: Option<String>
Required. The unique identifier of the event.
parameters: Option<HashMap<String, String>>
Optional. The collection of parameters associated with the event.
Trait Implementations
impl Default for GoogleCloudDialogflowV2EventInput
[src]
impl Default for GoogleCloudDialogflowV2EventInput
fn default() -> GoogleCloudDialogflowV2EventInput
[src]
fn default() -> GoogleCloudDialogflowV2EventInput
Returns the "default value" for a type. Read more
impl Clone for GoogleCloudDialogflowV2EventInput
[src]
impl Clone for GoogleCloudDialogflowV2EventInput
fn clone(&self) -> GoogleCloudDialogflowV2EventInput
[src]
fn clone(&self) -> GoogleCloudDialogflowV2EventInput
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for GoogleCloudDialogflowV2EventInput
[src]
impl Debug for GoogleCloudDialogflowV2EventInput
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Part for GoogleCloudDialogflowV2EventInput
[src]
impl Part for GoogleCloudDialogflowV2EventInput
Auto Trait Implementations
impl Send for GoogleCloudDialogflowV2EventInput
impl Send for GoogleCloudDialogflowV2EventInput
impl Sync for GoogleCloudDialogflowV2EventInput
impl Sync for GoogleCloudDialogflowV2EventInput