#[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: StringThe translated text.
source_language_code: StringThe language code for the language of the source text.
target_language_code: StringThe 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.