#[non_exhaustive]pub struct AppliedTerminologyBuilder { /* private fields */ }Expand description
A builder for AppliedTerminology.
Implementations§
source§impl AppliedTerminologyBuilder
impl AppliedTerminologyBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the custom terminology applied to the input text by Amazon Translate for the translated text response.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the custom terminology applied to the input text by Amazon Translate for the translated text response.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
The name of the custom terminology applied to the input text by Amazon Translate for the translated text response.
sourcepub fn terms(self, input: Term) -> Self
pub fn terms(self, input: Term) -> Self
Appends an item to terms.
To override the contents of this collection use set_terms.
The specific terms of the custom terminology applied to the input text by Amazon Translate for the translated text response. A maximum of 250 terms will be returned, and the specific terms applied will be the first 250 terms in the source text.
sourcepub fn set_terms(self, input: Option<Vec<Term>>) -> Self
pub fn set_terms(self, input: Option<Vec<Term>>) -> Self
The specific terms of the custom terminology applied to the input text by Amazon Translate for the translated text response. A maximum of 250 terms will be returned, and the specific terms applied will be the first 250 terms in the source text.
sourcepub fn get_terms(&self) -> &Option<Vec<Term>>
pub fn get_terms(&self) -> &Option<Vec<Term>>
The specific terms of the custom terminology applied to the input text by Amazon Translate for the translated text response. A maximum of 250 terms will be returned, and the specific terms applied will be the first 250 terms in the source text.
sourcepub fn build(self) -> AppliedTerminology
pub fn build(self) -> AppliedTerminology
Consumes the builder and constructs a AppliedTerminology.
Trait Implementations§
source§impl Clone for AppliedTerminologyBuilder
impl Clone for AppliedTerminologyBuilder
source§fn clone(&self) -> AppliedTerminologyBuilder
fn clone(&self) -> AppliedTerminologyBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for AppliedTerminologyBuilder
impl Debug for AppliedTerminologyBuilder
source§impl Default for AppliedTerminologyBuilder
impl Default for AppliedTerminologyBuilder
source§fn default() -> AppliedTerminologyBuilder
fn default() -> AppliedTerminologyBuilder
source§impl PartialEq for AppliedTerminologyBuilder
impl PartialEq for AppliedTerminologyBuilder
source§fn eq(&self, other: &AppliedTerminologyBuilder) -> bool
fn eq(&self, other: &AppliedTerminologyBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AppliedTerminologyBuilder
Auto Trait Implementations§
impl Freeze for AppliedTerminologyBuilder
impl RefUnwindSafe for AppliedTerminologyBuilder
impl Send for AppliedTerminologyBuilder
impl Sync for AppliedTerminologyBuilder
impl Unpin for AppliedTerminologyBuilder
impl UnwindSafe for AppliedTerminologyBuilder
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