Struct google_dialogflow2::api::GoogleCloudDialogflowV2QueryParameters[][src]

pub struct GoogleCloudDialogflowV2QueryParameters {
    pub contexts: Option<Vec<GoogleCloudDialogflowV2Context>>,
    pub geo_location: Option<GoogleTypeLatLng>,
    pub payload: Option<HashMap<String, String>>,
    pub reset_contexts: Option<bool>,
    pub sentiment_analysis_request_config: Option<GoogleCloudDialogflowV2SentimentAnalysisRequestConfig>,
    pub session_entity_types: Option<Vec<GoogleCloudDialogflowV2SessionEntityType>>,
    pub time_zone: Option<String>,
    pub webhook_headers: Option<HashMap<String, String>>,
}

Represents the parameters of the conversational query.

This type is not used in any activity, and only used as part of another schema.

Fields

contexts: Option<Vec<GoogleCloudDialogflowV2Context>>

The collection of contexts to be activated before this query is executed.

geo_location: Option<GoogleTypeLatLng>

The geo location of this conversational query.

payload: Option<HashMap<String, String>>

This field can be used to pass custom data to your webhook. Arbitrary JSON objects are supported. If supplied, the value is used to populate the WebhookRequest.original_detect_intent_request.payload field sent to your webhook.

reset_contexts: Option<bool>

Specifies whether to delete all contexts in the current session before the new ones are activated.

sentiment_analysis_request_config: Option<GoogleCloudDialogflowV2SentimentAnalysisRequestConfig>

Configures the type of sentiment analysis to perform. If not provided, sentiment analysis is not performed.

session_entity_types: Option<Vec<GoogleCloudDialogflowV2SessionEntityType>>

Additional session entity types to replace or extend developer entity types with. The entity synonyms apply to all languages and persist for the session of this query.

time_zone: Option<String>

The time zone of this conversational query from the time zone database, e.g., America/New_York, Europe/Paris. If not provided, the time zone specified in agent settings is used.

webhook_headers: Option<HashMap<String, String>>

This field can be used to pass HTTP headers for a webhook call. These headers will be sent to webhook along with the headers that have been configured through the Dialogflow web console. The headers defined within this field will overwrite the headers configured through the Dialogflow console if there is a conflict. Header names are case-insensitive. Google's specified headers are not allowed. Including: "Host", "Content-Length", "Connection", "From", "User-Agent", "Accept-Encoding", "If-Modified-Since", "If-None-Match", "X-Forwarded-For", etc.

Trait Implementations

impl Clone for GoogleCloudDialogflowV2QueryParameters[src]

impl Debug for GoogleCloudDialogflowV2QueryParameters[src]

impl Default for GoogleCloudDialogflowV2QueryParameters[src]

impl<'de> Deserialize<'de> for GoogleCloudDialogflowV2QueryParameters[src]

impl Part for GoogleCloudDialogflowV2QueryParameters[src]

impl Serialize for GoogleCloudDialogflowV2QueryParameters[src]

Auto Trait Implementations

impl RefUnwindSafe for GoogleCloudDialogflowV2QueryParameters[src]

impl Send for GoogleCloudDialogflowV2QueryParameters[src]

impl Sync for GoogleCloudDialogflowV2QueryParameters[src]

impl Unpin for GoogleCloudDialogflowV2QueryParameters[src]

impl UnwindSafe for GoogleCloudDialogflowV2QueryParameters[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.