Struct rusoto_lex_models::Slot
source · [−]pub struct Slot {
pub default_value_spec: Option<SlotDefaultValueSpec>,
pub description: Option<String>,
pub name: String,
pub obfuscation_setting: Option<String>,
pub priority: Option<i64>,
pub response_card: Option<String>,
pub sample_utterances: Option<Vec<String>>,
pub slot_constraint: String,
pub slot_type: Option<String>,
pub slot_type_version: Option<String>,
pub value_elicitation_prompt: Option<Prompt>,
}
Expand description
Identifies the version of a specific slot.
Fields
default_value_spec: Option<SlotDefaultValueSpec>
A list of default values for the slot. Default values are used when Amazon Lex hasn't determined a value for a slot. You can specify default values from context variables, session attributes, and defined values.
description: Option<String>
A description of the slot.
name: String
The name of the slot.
obfuscation_setting: Option<String>
Determines whether a slot is obfuscated in conversation logs and stored utterances. When you obfuscate a slot, the value is replaced by the slot name in curly braces ({}). For example, if the slot name is "full_name", obfuscated values are replaced with "{full_name}". For more information, see Slot Obfuscation .
priority: Option<i64>
Directs Amazon Lex the order in which to elicit this slot value from the user. For example, if the intent has two slots with priorities 1 and 2, AWS Amazon Lex first elicits a value for the slot with priority 1.
If multiple slots share the same priority, the order in which Amazon Lex elicits values is arbitrary.
response_card: Option<String>
A set of possible responses for the slot type used by text-based clients. A user chooses an option from the response card, instead of using text to reply.
sample_utterances: Option<Vec<String>>
If you know a specific pattern with which users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy. This is optional. In most cases, Amazon Lex is capable of understanding user utterances.
slot_constraint: String
Specifies whether the slot is required or optional.
slot_type: Option<String>
The type of the slot, either a custom slot type that you defined or one of the built-in slot types.
slot_type_version: Option<String>
The version of the slot type.
value_elicitation_prompt: Option<Prompt>
The prompt that Amazon Lex uses to elicit the slot value from the user.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Slot
impl<'de> Deserialize<'de> for Slot
sourcefn 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 StructuralPartialEq for Slot
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more