pub struct GoogleCloudDialogflowV2beta1SuggestionInput {
pub answer_record: Option<String>,
pub intent_input: Option<GoogleCloudDialogflowV2beta1IntentInput>,
pub parameters: Option<HashMap<String, Value>>,
pub text_override: Option<GoogleCloudDialogflowV2beta1TextInput>,
}Expand description
Represents the selection of a suggestion.
This type is not used in any activity, and only used as part of another schema.
Fields§
§answer_record: Option<String>Required. The ID of a suggestion selected by the human agent. The suggestion(s) were generated in a previous call to request Dialogflow assist. The format is: projects//locations//answerRecords/ where is an alphanumeric string.
intent_input: Option<GoogleCloudDialogflowV2beta1IntentInput>The intent to be triggered on V3 agent.
parameters: Option<HashMap<String, Value>>In Dialogflow assist for v3, the user can submit a form by sending a SuggestionInput. The form is uniquely determined by the answer_record field, which identifies a v3 QueryResult containing the current page. The form parameters are specified via the parameters field. 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.
text_override: Option<GoogleCloudDialogflowV2beta1TextInput>Optional. If the customer edited the suggestion before using it, include the revised text here.
Trait Implementations§
Source§impl Clone for GoogleCloudDialogflowV2beta1SuggestionInput
impl Clone for GoogleCloudDialogflowV2beta1SuggestionInput
Source§fn clone(&self) -> GoogleCloudDialogflowV2beta1SuggestionInput
fn clone(&self) -> GoogleCloudDialogflowV2beta1SuggestionInput
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for GoogleCloudDialogflowV2beta1SuggestionInput
impl Default for GoogleCloudDialogflowV2beta1SuggestionInput
Source§fn default() -> GoogleCloudDialogflowV2beta1SuggestionInput
fn default() -> GoogleCloudDialogflowV2beta1SuggestionInput
Source§impl<'de> Deserialize<'de> for GoogleCloudDialogflowV2beta1SuggestionInput
impl<'de> Deserialize<'de> for GoogleCloudDialogflowV2beta1SuggestionInput
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 GoogleCloudDialogflowV2beta1SuggestionInput
Auto Trait Implementations§
impl Freeze for GoogleCloudDialogflowV2beta1SuggestionInput
impl RefUnwindSafe for GoogleCloudDialogflowV2beta1SuggestionInput
impl Send for GoogleCloudDialogflowV2beta1SuggestionInput
impl Sync for GoogleCloudDialogflowV2beta1SuggestionInput
impl Unpin for GoogleCloudDialogflowV2beta1SuggestionInput
impl UnwindSafe for GoogleCloudDialogflowV2beta1SuggestionInput
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