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
source§fn eq(&self, other: &CustomVocabularyItem) -> bool
fn eq(&self, other: &CustomVocabularyItem) -> bool
self and other values to be equal, and is used
by ==.