Struct aws_sdk_lexmodelsv2::types::SlotTypeValue
source · #[non_exhaustive]pub struct SlotTypeValue {
pub sample_value: Option<SampleValue>,
pub synonyms: Option<Vec<SampleValue>>,
}Expand description
Each slot type can have a set of values. Each SlotTypeValue represents a value that the slot type can take.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.sample_value: Option<SampleValue>The value of the slot type entry.
synonyms: Option<Vec<SampleValue>>Additional values related to the slot type entry.
Implementations§
source§impl SlotTypeValue
impl SlotTypeValue
sourcepub fn sample_value(&self) -> Option<&SampleValue>
pub fn sample_value(&self) -> Option<&SampleValue>
The value of the slot type entry.
sourcepub fn synonyms(&self) -> &[SampleValue]
pub fn synonyms(&self) -> &[SampleValue]
Additional values related to the slot type entry.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .synonyms.is_none().
source§impl SlotTypeValue
impl SlotTypeValue
sourcepub fn builder() -> SlotTypeValueBuilder
pub fn builder() -> SlotTypeValueBuilder
Creates a new builder-style object to manufacture SlotTypeValue.
Trait Implementations§
source§impl Clone for SlotTypeValue
impl Clone for SlotTypeValue
source§fn clone(&self) -> SlotTypeValue
fn clone(&self) -> SlotTypeValue
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for SlotTypeValue
impl Debug for SlotTypeValue
source§impl PartialEq for SlotTypeValue
impl PartialEq for SlotTypeValue
source§fn eq(&self, other: &SlotTypeValue) -> bool
fn eq(&self, other: &SlotTypeValue) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for SlotTypeValue
Auto Trait Implementations§
impl Freeze for SlotTypeValue
impl RefUnwindSafe for SlotTypeValue
impl Send for SlotTypeValue
impl Sync for SlotTypeValue
impl Unpin for SlotTypeValue
impl UnwindSafe for SlotTypeValue
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.