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

pub struct Slot {
    pub mode: i32,
    pub status: i32,
    pub value: Option<Value>,
    pub updated: bool,
    pub prompt: Option<Prompt>,
}

Represents a slot.

Fields

mode: i32

The mode of the slot (required or optional). Can be set by developer.

status: i32

The status of the slot.

value: Option<Value>

The value of the slot. Changing this value in the response, will modify the value in slot filling.

updated: bool

Indicates if the slot value was collected on the last turn. This field is read-only.

prompt: Option<Prompt>

Optional. This prompt is sent to the user when needed to fill a required slot. This prompt overrides the existing prompt defined in the console. This field is not included in the webhook request.

Implementations

impl Slot[src]

pub fn mode(&self) -> SlotMode[src]

Returns the enum value of mode, or the default if the field is set to an invalid enum value.

pub fn set_mode(&mut self, value: SlotMode)[src]

Sets mode to the provided enum value.

pub fn status(&self) -> SlotStatus[src]

Returns the enum value of status, or the default if the field is set to an invalid enum value.

pub fn set_status(&mut self, value: SlotStatus)[src]

Sets status to the provided enum value.

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]