Struct aws_sdk_connect::types::Vocabulary
source · #[non_exhaustive]pub struct Vocabulary {
pub name: String,
pub id: String,
pub arn: String,
pub language_code: VocabularyLanguageCode,
pub state: VocabularyState,
pub last_modified_time: DateTime,
pub failure_reason: Option<String>,
pub content: Option<String>,
pub tags: Option<HashMap<String, String>>,
}
Expand description
Contains information about a custom vocabulary.
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.name: String
A unique name of the custom vocabulary.
id: String
The identifier of the custom vocabulary.
arn: String
The Amazon Resource Name (ARN) of the custom vocabulary.
language_code: VocabularyLanguageCode
The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see What is Amazon Transcribe?
state: VocabularyState
The current state of the custom vocabulary.
last_modified_time: DateTime
The timestamp when the custom vocabulary was last modified.
failure_reason: Option<String>
The reason why the custom vocabulary was not created.
content: Option<String>
The content of the custom vocabulary in plain-text format with a table of values. Each row in the table represents a word or a phrase, described with Phrase
, IPA
, SoundsLike
, and DisplayAs
fields. Separate the fields with TAB characters. For more information, see Create a custom vocabulary using a table.
The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.
Implementations§
source§impl Vocabulary
impl Vocabulary
sourcepub fn language_code(&self) -> &VocabularyLanguageCode
pub fn language_code(&self) -> &VocabularyLanguageCode
The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see What is Amazon Transcribe?
sourcepub fn state(&self) -> &VocabularyState
pub fn state(&self) -> &VocabularyState
The current state of the custom vocabulary.
sourcepub fn last_modified_time(&self) -> &DateTime
pub fn last_modified_time(&self) -> &DateTime
The timestamp when the custom vocabulary was last modified.
sourcepub fn failure_reason(&self) -> Option<&str>
pub fn failure_reason(&self) -> Option<&str>
The reason why the custom vocabulary was not created.
sourcepub fn content(&self) -> Option<&str>
pub fn content(&self) -> Option<&str>
The content of the custom vocabulary in plain-text format with a table of values. Each row in the table represents a word or a phrase, described with Phrase
, IPA
, SoundsLike
, and DisplayAs
fields. Separate the fields with TAB characters. For more information, see Create a custom vocabulary using a table.
The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.
source§impl Vocabulary
impl Vocabulary
sourcepub fn builder() -> VocabularyBuilder
pub fn builder() -> VocabularyBuilder
Creates a new builder-style object to manufacture Vocabulary
.
Trait Implementations§
source§impl Clone for Vocabulary
impl Clone for Vocabulary
source§fn clone(&self) -> Vocabulary
fn clone(&self) -> Vocabulary
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Vocabulary
impl Debug for Vocabulary
source§impl PartialEq for Vocabulary
impl PartialEq for Vocabulary
source§fn eq(&self, other: &Vocabulary) -> bool
fn eq(&self, other: &Vocabulary) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for Vocabulary
Auto Trait Implementations§
impl Freeze for Vocabulary
impl RefUnwindSafe for Vocabulary
impl Send for Vocabulary
impl Sync for Vocabulary
impl Unpin for Vocabulary
impl UnwindSafe for Vocabulary
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> 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