Struct aws_sdk_lexmodelsv2::types::CustomVocabularyItem
source · #[non_exhaustive]pub struct CustomVocabularyItem {
pub item_id: String,
pub phrase: String,
pub weight: Option<i32>,
pub display_as: Option<String>,
}Expand description
The unique custom vocabulary item from the custom vocabulary list.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.item_id: StringThe unique item identifer for the custom vocabulary item from the custom vocabulary list.
phrase: StringThe unique phrase for the custom vocabulary item from the custom vocabulary list.
weight: Option<i32>The weight assigned for the custom vocabulary item from the custom vocabulary list.
display_as: Option<String>The DisplayAs value for the custom vocabulary item from the custom vocabulary list.
Implementations§
source§impl CustomVocabularyItem
impl CustomVocabularyItem
sourcepub fn item_id(&self) -> &str
pub fn item_id(&self) -> &str
The unique item identifer for the custom vocabulary item from the custom vocabulary list.
sourcepub fn phrase(&self) -> &str
pub fn phrase(&self) -> &str
The unique phrase for the custom vocabulary item from the custom vocabulary list.
sourcepub fn weight(&self) -> Option<i32>
pub fn weight(&self) -> Option<i32>
The weight assigned for the custom vocabulary item from the custom vocabulary list.
sourcepub fn display_as(&self) -> Option<&str>
pub fn display_as(&self) -> Option<&str>
The DisplayAs value for the custom vocabulary item from the custom vocabulary list.
source§impl CustomVocabularyItem
impl CustomVocabularyItem
sourcepub fn builder() -> CustomVocabularyItemBuilder
pub fn builder() -> CustomVocabularyItemBuilder
Creates a new builder-style object to manufacture CustomVocabularyItem.
Trait Implementations§
source§impl Clone for CustomVocabularyItem
impl Clone for CustomVocabularyItem
source§fn clone(&self) -> CustomVocabularyItem
fn clone(&self) -> CustomVocabularyItem
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CustomVocabularyItem
impl Debug for CustomVocabularyItem
source§impl PartialEq for CustomVocabularyItem
impl PartialEq for CustomVocabularyItem
impl StructuralPartialEq for CustomVocabularyItem
Auto Trait Implementations§
impl Freeze for CustomVocabularyItem
impl RefUnwindSafe for CustomVocabularyItem
impl Send for CustomVocabularyItem
impl Sync for CustomVocabularyItem
impl Unpin for CustomVocabularyItem
impl UnwindSafe for CustomVocabularyItem
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more