#[non_exhaustive]pub enum DetectIntentResponseView {
Unspecified,
Full,
Basic,
Default,
UnknownValue(UnknownValue),
}Available on crate feature
sessions only.Expand description
The response view specifies which fields in the QueryResult to return.
§Working with unknown values
This enum is defined as #[non_exhaustive] because Google Cloud may add
additional enum variants at any time. Adding new variants is not considered
a breaking change. Applications should write their code in anticipation of:
- New values appearing in future releases of the client library, and
- New values received dynamically, without application changes.
Please consult the Working with enums section in the user guide for some guidelines.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unspecified
Not specified. DETECT_INTENT_RESPONSE_VIEW_DEFAULT will be used.
Full
Full response view includes all fields.
Basic
§Basic response view omits the following fields:
Default
§Default response view omits the following fields:
UnknownValue(UnknownValue)
If set, the enum was initialized with an unknown value.
Applications can examine the value using DetectIntentResponseView::value or DetectIntentResponseView::name.
Implementations§
Trait Implementations§
Source§impl Clone for DetectIntentResponseView
impl Clone for DetectIntentResponseView
Source§fn clone(&self) -> DetectIntentResponseView
fn clone(&self) -> DetectIntentResponseView
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DetectIntentResponseView
impl Debug for DetectIntentResponseView
Source§impl Default for DetectIntentResponseView
impl Default for DetectIntentResponseView
Source§impl<'de> Deserialize<'de> for DetectIntentResponseView
impl<'de> Deserialize<'de> for DetectIntentResponseView
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for DetectIntentResponseView
impl Display for DetectIntentResponseView
Source§impl From<&str> for DetectIntentResponseView
impl From<&str> for DetectIntentResponseView
Source§impl From<i32> for DetectIntentResponseView
impl From<i32> for DetectIntentResponseView
Source§impl PartialEq for DetectIntentResponseView
impl PartialEq for DetectIntentResponseView
Source§fn eq(&self, other: &DetectIntentResponseView) -> bool
fn eq(&self, other: &DetectIntentResponseView) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DetectIntentResponseView
impl Serialize for DetectIntentResponseView
impl StructuralPartialEq for DetectIntentResponseView
Auto Trait Implementations§
impl Freeze for DetectIntentResponseView
impl RefUnwindSafe for DetectIntentResponseView
impl Send for DetectIntentResponseView
impl Sync for DetectIntentResponseView
impl Unpin for DetectIntentResponseView
impl UnsafeUnpin for DetectIntentResponseView
impl UnwindSafe for DetectIntentResponseView
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
Mutably borrows from an owned value. Read more