pub struct GoogleCloudDialogflowV2beta1IntentParameter {
pub default_value: Option<String>,
pub display_name: Option<String>,
pub entity_type_display_name: Option<String>,
pub is_list: Option<bool>,
pub mandatory: Option<bool>,
pub name: Option<String>,
pub prompts: Option<Vec<String>>,
pub value: Option<String>,
}Expand description
Represents intent parameters.
This type is not used in any activity, and only used as part of another schema.
Fields§
§default_value: Option<String>Optional. The default value to use when the value yields an empty result. Default values can be extracted from contexts by using the following syntax: #context_name.parameter_name.
display_name: Option<String>Required. The name of the parameter.
entity_type_display_name: Option<String>Optional. The name of the entity type, prefixed with @, that describes values of the parameter. If the parameter is required, this must be provided.
is_list: Option<bool>Optional. Indicates whether the parameter represents a list of values.
mandatory: Option<bool>Optional. Indicates whether the parameter is required. That is, whether the intent cannot be completed without collecting the parameter value.
name: Option<String>The unique identifier of this parameter.
prompts: Option<Vec<String>>Optional. The collection of prompts that the agent can present to the user in order to collect a value for the parameter.
value: Option<String>Optional. The definition of the parameter value. It can be: - a constant string, - a parameter value defined as $parameter_name, - an original parameter value defined as $parameter_name.original, - a parameter value from some context defined as #context_name.parameter_name.
Trait Implementations§
Source§impl Clone for GoogleCloudDialogflowV2beta1IntentParameter
impl Clone for GoogleCloudDialogflowV2beta1IntentParameter
Source§fn clone(&self) -> GoogleCloudDialogflowV2beta1IntentParameter
fn clone(&self) -> GoogleCloudDialogflowV2beta1IntentParameter
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for GoogleCloudDialogflowV2beta1IntentParameter
impl Default for GoogleCloudDialogflowV2beta1IntentParameter
Source§fn default() -> GoogleCloudDialogflowV2beta1IntentParameter
fn default() -> GoogleCloudDialogflowV2beta1IntentParameter
Source§impl<'de> Deserialize<'de> for GoogleCloudDialogflowV2beta1IntentParameter
impl<'de> Deserialize<'de> for GoogleCloudDialogflowV2beta1IntentParameter
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 GoogleCloudDialogflowV2beta1IntentParameter
Auto Trait Implementations§
impl Freeze for GoogleCloudDialogflowV2beta1IntentParameter
impl RefUnwindSafe for GoogleCloudDialogflowV2beta1IntentParameter
impl Send for GoogleCloudDialogflowV2beta1IntentParameter
impl Sync for GoogleCloudDialogflowV2beta1IntentParameter
impl Unpin for GoogleCloudDialogflowV2beta1IntentParameter
impl UnwindSafe for GoogleCloudDialogflowV2beta1IntentParameter
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