Struct aws_sdk_comprehend::operation::detect_dominant_language::DetectDominantLanguageOutput
source · #[non_exhaustive]pub struct DetectDominantLanguageOutput {
pub languages: Option<Vec<DominantLanguage>>,
/* private fields */
}
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.languages: Option<Vec<DominantLanguage>>
Array of languages that Amazon Comprehend detected in the input text. The array is sorted in descending order of the score (the dominant language is always the first element in the array).
For each language, the response returns the RFC 5646 language code and the level of confidence that Amazon Comprehend has in the accuracy of its inference. For more information about RFC 5646, see Tags for Identifying Languages on the IETF Tools web site.
Implementations§
source§impl DetectDominantLanguageOutput
impl DetectDominantLanguageOutput
sourcepub fn languages(&self) -> &[DominantLanguage]
pub fn languages(&self) -> &[DominantLanguage]
Array of languages that Amazon Comprehend detected in the input text. The array is sorted in descending order of the score (the dominant language is always the first element in the array).
For each language, the response returns the RFC 5646 language code and the level of confidence that Amazon Comprehend has in the accuracy of its inference. For more information about RFC 5646, see Tags for Identifying Languages on the IETF Tools web site.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .languages.is_none()
.
source§impl DetectDominantLanguageOutput
impl DetectDominantLanguageOutput
sourcepub fn builder() -> DetectDominantLanguageOutputBuilder
pub fn builder() -> DetectDominantLanguageOutputBuilder
Creates a new builder-style object to manufacture DetectDominantLanguageOutput
.
Trait Implementations§
source§impl Clone for DetectDominantLanguageOutput
impl Clone for DetectDominantLanguageOutput
source§fn clone(&self) -> DetectDominantLanguageOutput
fn clone(&self) -> DetectDominantLanguageOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DetectDominantLanguageOutput
impl Debug for DetectDominantLanguageOutput
source§impl PartialEq for DetectDominantLanguageOutput
impl PartialEq for DetectDominantLanguageOutput
source§fn eq(&self, other: &DetectDominantLanguageOutput) -> bool
fn eq(&self, other: &DetectDominantLanguageOutput) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl RequestId for DetectDominantLanguageOutput
impl RequestId for DetectDominantLanguageOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.impl StructuralPartialEq for DetectDominantLanguageOutput
Auto Trait Implementations§
impl Freeze for DetectDominantLanguageOutput
impl RefUnwindSafe for DetectDominantLanguageOutput
impl Send for DetectDominantLanguageOutput
impl Sync for DetectDominantLanguageOutput
impl Unpin for DetectDominantLanguageOutput
impl UnwindSafe for DetectDominantLanguageOutput
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