pub struct GoogleCloudRetailV2IntentClassificationConfigExample {
pub classified_positive: Option<bool>,
pub intent_type: Option<String>,
pub query: Option<String>,
pub reason: Option<String>,
}Expand description
An example for intent classification.
This type is not used in any activity, and only used as part of another schema.
Fields§
§classified_positive: Option<bool>Required. Whether the example is classified positively.
intent_type: Option<String>Optional. The intent_type must match one of the predefined intent types defined at https://cloud.google.com/retail/docs/reference/rpc/google.cloud.retail.v2alpha#querytype
query: Option<String>Required. Example query.
reason: Option<String>Optional. The reason for the intent classification. This is used to explain the intent classification decision.
Trait Implementations§
Source§impl Clone for GoogleCloudRetailV2IntentClassificationConfigExample
impl Clone for GoogleCloudRetailV2IntentClassificationConfigExample
Source§fn clone(&self) -> GoogleCloudRetailV2IntentClassificationConfigExample
fn clone(&self) -> GoogleCloudRetailV2IntentClassificationConfigExample
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for GoogleCloudRetailV2IntentClassificationConfigExample
impl Default for GoogleCloudRetailV2IntentClassificationConfigExample
Source§fn default() -> GoogleCloudRetailV2IntentClassificationConfigExample
fn default() -> GoogleCloudRetailV2IntentClassificationConfigExample
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GoogleCloudRetailV2IntentClassificationConfigExample
impl<'de> Deserialize<'de> for GoogleCloudRetailV2IntentClassificationConfigExample
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
impl Part for GoogleCloudRetailV2IntentClassificationConfigExample
Auto Trait Implementations§
impl Freeze for GoogleCloudRetailV2IntentClassificationConfigExample
impl RefUnwindSafe for GoogleCloudRetailV2IntentClassificationConfigExample
impl Send for GoogleCloudRetailV2IntentClassificationConfigExample
impl Sync for GoogleCloudRetailV2IntentClassificationConfigExample
impl Unpin for GoogleCloudRetailV2IntentClassificationConfigExample
impl UnwindSafe for GoogleCloudRetailV2IntentClassificationConfigExample
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