Struct aws_sdk_comprehend::types::builders::DominantLanguageBuilder
source · #[non_exhaustive]pub struct DominantLanguageBuilder { /* private fields */ }Expand description
A builder for DominantLanguage.
Implementations§
source§impl DominantLanguageBuilder
impl DominantLanguageBuilder
sourcepub fn language_code(self, input: impl Into<String>) -> Self
pub fn language_code(self, input: impl Into<String>) -> Self
The RFC 5646 language code for the dominant language. For more information about RFC 5646, see Tags for Identifying Languages on the IETF Tools web site.
sourcepub fn set_language_code(self, input: Option<String>) -> Self
pub fn set_language_code(self, input: Option<String>) -> Self
The RFC 5646 language code for the dominant language. For more information about RFC 5646, see Tags for Identifying Languages on the IETF Tools web site.
sourcepub fn get_language_code(&self) -> &Option<String>
pub fn get_language_code(&self) -> &Option<String>
The RFC 5646 language code for the dominant language. For more information about RFC 5646, see Tags for Identifying Languages on the IETF Tools web site.
sourcepub fn score(self, input: f32) -> Self
pub fn score(self, input: f32) -> Self
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
sourcepub fn set_score(self, input: Option<f32>) -> Self
pub fn set_score(self, input: Option<f32>) -> Self
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
sourcepub fn get_score(&self) -> &Option<f32>
pub fn get_score(&self) -> &Option<f32>
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
sourcepub fn build(self) -> DominantLanguage
pub fn build(self) -> DominantLanguage
Consumes the builder and constructs a DominantLanguage.
Trait Implementations§
source§impl Clone for DominantLanguageBuilder
impl Clone for DominantLanguageBuilder
source§fn clone(&self) -> DominantLanguageBuilder
fn clone(&self) -> DominantLanguageBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for DominantLanguageBuilder
impl Debug for DominantLanguageBuilder
source§impl Default for DominantLanguageBuilder
impl Default for DominantLanguageBuilder
source§fn default() -> DominantLanguageBuilder
fn default() -> DominantLanguageBuilder
source§impl PartialEq for DominantLanguageBuilder
impl PartialEq for DominantLanguageBuilder
source§fn eq(&self, other: &DominantLanguageBuilder) -> bool
fn eq(&self, other: &DominantLanguageBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for DominantLanguageBuilder
Auto Trait Implementations§
impl Freeze for DominantLanguageBuilder
impl RefUnwindSafe for DominantLanguageBuilder
impl Send for DominantLanguageBuilder
impl Sync for DominantLanguageBuilder
impl Unpin for DominantLanguageBuilder
impl UnwindSafe for DominantLanguageBuilder
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