#[non_exhaustive]pub struct TranslateTextOutput {
pub translated_text: String,
pub source_language_code: String,
pub target_language_code: String,
pub applied_terminologies: Option<Vec<AppliedTerminology>>,
pub applied_settings: Option<TranslationSettings>,
/* private fields */
}
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.translated_text: String
The translated text.
source_language_code: String
The language code for the language of the source text.
target_language_code: String
The language code for the language of the target text.
applied_terminologies: Option<Vec<AppliedTerminology>>
The names of the custom terminologies applied to the input text by Amazon Translate for the translated text response.
applied_settings: Option<TranslationSettings>
Optional settings that modify the translation output.
Implementations§
source§impl TranslateTextOutput
impl TranslateTextOutput
sourcepub fn translated_text(&self) -> &str
pub fn translated_text(&self) -> &str
The translated text.
sourcepub fn source_language_code(&self) -> &str
pub fn source_language_code(&self) -> &str
The language code for the language of the source text.
sourcepub fn target_language_code(&self) -> &str
pub fn target_language_code(&self) -> &str
The language code for the language of the target text.
sourcepub fn applied_terminologies(&self) -> &[AppliedTerminology]
pub fn applied_terminologies(&self) -> &[AppliedTerminology]
The names of the custom terminologies applied to the input text by Amazon Translate for the translated text response.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .applied_terminologies.is_none()
.
sourcepub fn applied_settings(&self) -> Option<&TranslationSettings>
pub fn applied_settings(&self) -> Option<&TranslationSettings>
Optional settings that modify the translation output.
source§impl TranslateTextOutput
impl TranslateTextOutput
sourcepub fn builder() -> TranslateTextOutputBuilder
pub fn builder() -> TranslateTextOutputBuilder
Creates a new builder-style object to manufacture TranslateTextOutput
.
Trait Implementations§
source§impl Clone for TranslateTextOutput
impl Clone for TranslateTextOutput
source§fn clone(&self) -> TranslateTextOutput
fn clone(&self) -> TranslateTextOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TranslateTextOutput
impl Debug for TranslateTextOutput
source§impl PartialEq for TranslateTextOutput
impl PartialEq for TranslateTextOutput
source§fn eq(&self, other: &TranslateTextOutput) -> bool
fn eq(&self, other: &TranslateTextOutput) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl RequestId for TranslateTextOutput
impl RequestId for TranslateTextOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.impl StructuralPartialEq for TranslateTextOutput
Auto Trait Implementations§
impl Freeze for TranslateTextOutput
impl RefUnwindSafe for TranslateTextOutput
impl Send for TranslateTextOutput
impl Sync for TranslateTextOutput
impl Unpin for TranslateTextOutput
impl UnwindSafe for TranslateTextOutput
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