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

pub struct Slot {
    pub name: String,
    pub type: Option<ClassReference>,
    pub required: bool,
    pub prompt_settings: Option<PromptSettings>,
    pub commit_behavior: Option<CommitBehavior>,
    pub config: Option<Value>,
    pub default_value: Option<DefaultValue>,
}

Configuration for a slot. Slots are single units of data that can be filled through natural language (ie. intent parameters), session parameters, and other sources.

Fields

name: String

Required. Name of the slot.

type: Option<ClassReference>

Required. Declares the data type of this slot.

required: bool

Optional. Indicates whether the slot is required to be filled before advancing. Required slots that are not filled will trigger a customizable prompt to the user.

prompt_settings: Option<PromptSettings>

Optional. Registers Prompts for different stages of slot filling.

commit_behavior: Option<CommitBehavior>

Optional. Commit behavior associated with the slot.

config: Option<Value>

Optional. Additional configuration associated with the slot which is used for filling the slot. The format of the config is specific to the type of the slot. Resource references to user or session parameter can be added to this config. This config is needed for filling slots related to transactions and user engagement.

Example: For a slot of type actions.type.CompletePurchaseValue, the following config proposes a digital good order with a reference to a client defined session parameter userSelectedSkuId:

{ “@type”: “type.googleapis.com/ google.actions.transactions.v3.CompletePurchaseValueSpec”, “skuId”: { “skuType”: “SKU_TYPE_IN_APP”, “id”: “$session.params.userSelectedSkuId”, “packageName”: “com.example.company” } }

default_value: Option<DefaultValue>

Optional. Configuration to populate a default value for this slot.

Trait Implementations

impl Clone for Slot[src]

impl Debug for Slot[src]

impl Default for Slot[src]

impl Message for Slot[src]

impl PartialEq<Slot> for Slot[src]

impl StructuralPartialEq for Slot[src]

Auto Trait Implementations

impl RefUnwindSafe for Slot

impl Send for Slot

impl Sync for Slot

impl Unpin for Slot

impl UnwindSafe for Slot

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]