pub struct GoogleCloudDialogflowV2EventInput {
pub language_code: Option<String>,
pub name: Option<String>,
pub parameters: Option<HashMap<String, Value>>,
}Expand description
Events allow for matching intents by event name instead of the natural language input. For instance, input `` 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. This field is ignored when used in the context of a WebhookResponse.followup_event_input field, because the language was already defined in the originating detect intent request.
name: Option<String>Required. The unique identifier of the event.
parameters: Option<HashMap<String, Value>>The collection of parameters associated with the event. Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs: * MapKey type: string * MapKey value: parameter name * MapValue type: If parameter’s entity type is a composite entity then use map, otherwise, depending on the parameter value type, it could be one of string, number, boolean, null, list or map. * MapValue value: If parameter’s entity type is a composite entity then use map from composite entity property names to property values, otherwise, use parameter value.
Trait Implementations§
Source§impl Clone for GoogleCloudDialogflowV2EventInput
impl Clone for GoogleCloudDialogflowV2EventInput
Source§fn clone(&self) -> GoogleCloudDialogflowV2EventInput
fn clone(&self) -> GoogleCloudDialogflowV2EventInput
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for GoogleCloudDialogflowV2EventInput
impl Default for GoogleCloudDialogflowV2EventInput
Source§fn default() -> GoogleCloudDialogflowV2EventInput
fn default() -> GoogleCloudDialogflowV2EventInput
Source§impl<'de> Deserialize<'de> for GoogleCloudDialogflowV2EventInput
impl<'de> Deserialize<'de> for GoogleCloudDialogflowV2EventInput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Part for GoogleCloudDialogflowV2EventInput
Auto Trait Implementations§
impl Freeze for GoogleCloudDialogflowV2EventInput
impl RefUnwindSafe for GoogleCloudDialogflowV2EventInput
impl Send for GoogleCloudDialogflowV2EventInput
impl Sync for GoogleCloudDialogflowV2EventInput
impl Unpin for GoogleCloudDialogflowV2EventInput
impl UnwindSafe for GoogleCloudDialogflowV2EventInput
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more