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 ==
.