Struct gapi_grpc::google::actions::sdk::v2::interactionmodel::Intent[][src]

pub struct Intent {
    pub parameters: Vec<IntentParameter>,
    pub training_phrases: Vec<String>,
}

Intents map open-ended user input to structured objects. Spoken phrases are matched to intents with Google’s Natural Language Understanding (NLU). Intent matches can trigger events in your conversation design to progress the user’s conversation. The intent name is specified in the name of the file.

Fields

parameters: Vec<IntentParameter>

The list of parameters within the training phrases. All parameters must be defined here to be used in the training phrase.

training_phrases: Vec<String>

Training phrases allow Google’s NLU to automatically match intents with user input. The more unique phrases that are provided, the better chance this intent will be matched. The following is the format of training phrase part which are annotated. Note that auto field is optional and the default behavior when auto is not specified is equivalent to auto=false. ($<paramName> '<sample text>' auto=<true or false>) auto = true means the part was auto annotated by NLU. auto = false means the part was annotated by the user. This is the default when auto is not specified. Example: “Book a flight from ($source ‘San Francisco’ auto=false) to ($dest ‘Vancouver’)”

Trait Implementations

impl Clone for Intent[src]

impl Debug for Intent[src]

impl Default for Intent[src]

impl Message for Intent[src]

impl PartialEq<Intent> for Intent[src]

impl StructuralPartialEq for Intent[src]

Auto Trait Implementations

impl RefUnwindSafe for Intent

impl Send for Intent

impl Sync for Intent

impl Unpin for Intent

impl UnwindSafe for Intent

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> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> IntoRequest<T> for 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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]