Struct gapi_grpc::google::actions::sdk::v2::conversation::Slot [−][src]
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][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
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][+]
U: From<T>,
impl<T> IntoRequest<T> for T
[src][+]
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src][+]
V: MultiLane<T>,