Struct aws_sdk_translate::types::AppliedTerminology
source · #[non_exhaustive]pub struct AppliedTerminology {
pub name: Option<String>,
pub terms: Option<Vec<Term>>,
}
Expand description
The custom terminology applied to the input text by Amazon Translate for the translated text response. This is optional in the response and will only be present if you specified terminology input in the request. Currently, only one terminology can be applied per TranslateText request.
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: Option<String>
The name of the custom terminology applied to the input text by Amazon Translate for the translated text response.
terms: 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.
Implementations§
source§impl AppliedTerminology
impl AppliedTerminology
sourcepub fn name(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
The name of the custom terminology applied to the input text by Amazon Translate for the translated text response.
sourcepub fn terms(&self) -> &[Term]
pub fn terms(&self) -> &[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.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .terms.is_none()
.
source§impl AppliedTerminology
impl AppliedTerminology
sourcepub fn builder() -> AppliedTerminologyBuilder
pub fn builder() -> AppliedTerminologyBuilder
Creates a new builder-style object to manufacture AppliedTerminology
.
Trait Implementations§
source§impl Clone for AppliedTerminology
impl Clone for AppliedTerminology
source§fn clone(&self) -> AppliedTerminology
fn clone(&self) -> AppliedTerminology
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AppliedTerminology
impl Debug for AppliedTerminology
source§impl PartialEq for AppliedTerminology
impl PartialEq for AppliedTerminology
source§fn eq(&self, other: &AppliedTerminology) -> bool
fn eq(&self, other: &AppliedTerminology) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AppliedTerminology
Auto Trait Implementations§
impl Freeze for AppliedTerminology
impl RefUnwindSafe for AppliedTerminology
impl Send for AppliedTerminology
impl Sync for AppliedTerminology
impl Unpin for AppliedTerminology
impl UnwindSafe for AppliedTerminology
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