Struct aws_sdk_comprehend::operation::detect_dominant_language::builders::DetectDominantLanguageOutputBuilder
source · #[non_exhaustive]pub struct DetectDominantLanguageOutputBuilder { /* private fields */ }Expand description
A builder for DetectDominantLanguageOutput.
Implementations§
source§impl DetectDominantLanguageOutputBuilder
impl DetectDominantLanguageOutputBuilder
sourcepub fn languages(self, input: DominantLanguage) -> Self
pub fn languages(self, input: DominantLanguage) -> Self
Appends an item to languages.
To override the contents of this collection use set_languages.
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.
sourcepub fn set_languages(self, input: Option<Vec<DominantLanguage>>) -> Self
pub fn set_languages(self, input: Option<Vec<DominantLanguage>>) -> Self
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.
sourcepub fn get_languages(&self) -> &Option<Vec<DominantLanguage>>
pub fn get_languages(&self) -> &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.
sourcepub fn build(self) -> DetectDominantLanguageOutput
pub fn build(self) -> DetectDominantLanguageOutput
Consumes the builder and constructs a DetectDominantLanguageOutput.
Trait Implementations§
source§impl Clone for DetectDominantLanguageOutputBuilder
impl Clone for DetectDominantLanguageOutputBuilder
source§fn clone(&self) -> DetectDominantLanguageOutputBuilder
fn clone(&self) -> DetectDominantLanguageOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for DetectDominantLanguageOutputBuilder
impl Default for DetectDominantLanguageOutputBuilder
source§fn default() -> DetectDominantLanguageOutputBuilder
fn default() -> DetectDominantLanguageOutputBuilder
source§impl PartialEq for DetectDominantLanguageOutputBuilder
impl PartialEq for DetectDominantLanguageOutputBuilder
source§fn eq(&self, other: &DetectDominantLanguageOutputBuilder) -> bool
fn eq(&self, other: &DetectDominantLanguageOutputBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for DetectDominantLanguageOutputBuilder
Auto Trait Implementations§
impl Freeze for DetectDominantLanguageOutputBuilder
impl RefUnwindSafe for DetectDominantLanguageOutputBuilder
impl Send for DetectDominantLanguageOutputBuilder
impl Sync for DetectDominantLanguageOutputBuilder
impl Unpin for DetectDominantLanguageOutputBuilder
impl UnwindSafe for DetectDominantLanguageOutputBuilder
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