#[non_exhaustive]pub struct TranslateDocumentOutput {
pub translated_document: Option<TranslatedDocument>,
pub source_language_code: Option<String>,
pub target_language_code: Option<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_document: Option<TranslatedDocument>The document containing the translated content. The document format matches the source document format.
source_language_code: Option<String>The language code of the source document.
target_language_code: Option<String>The language code of the translated document.
applied_terminologies: Option<Vec<AppliedTerminology>>The names of the custom terminologies applied to the input text by Amazon Translate to produce the translated text document.
applied_settings: Option<TranslationSettings>Settings to configure your translation output, including the option to set the formality level of the output text and the option to mask profane words and phrases.
Implementations§
source§impl TranslateDocumentOutput
impl TranslateDocumentOutput
sourcepub fn translated_document(&self) -> Option<&TranslatedDocument>
pub fn translated_document(&self) -> Option<&TranslatedDocument>
The document containing the translated content. The document format matches the source document format.
sourcepub fn source_language_code(&self) -> Option<&str>
pub fn source_language_code(&self) -> Option<&str>
The language code of the source document.
sourcepub fn target_language_code(&self) -> Option<&str>
pub fn target_language_code(&self) -> Option<&str>
The language code of the translated document.
sourcepub fn applied_terminologies(&self) -> Option<&[AppliedTerminology]>
pub fn applied_terminologies(&self) -> Option<&[AppliedTerminology]>
The names of the custom terminologies applied to the input text by Amazon Translate to produce the translated text document.
sourcepub fn applied_settings(&self) -> Option<&TranslationSettings>
pub fn applied_settings(&self) -> Option<&TranslationSettings>
Settings to configure your translation output, including the option to set the formality level of the output text and the option to mask profane words and phrases.
source§impl TranslateDocumentOutput
impl TranslateDocumentOutput
sourcepub fn builder() -> TranslateDocumentOutputBuilder
pub fn builder() -> TranslateDocumentOutputBuilder
Creates a new builder-style object to manufacture TranslateDocumentOutput.
Trait Implementations§
source§impl Clone for TranslateDocumentOutput
impl Clone for TranslateDocumentOutput
source§fn clone(&self) -> TranslateDocumentOutput
fn clone(&self) -> TranslateDocumentOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for TranslateDocumentOutput
impl Debug for TranslateDocumentOutput
source§impl PartialEq<TranslateDocumentOutput> for TranslateDocumentOutput
impl PartialEq<TranslateDocumentOutput> for TranslateDocumentOutput
source§fn eq(&self, other: &TranslateDocumentOutput) -> bool
fn eq(&self, other: &TranslateDocumentOutput) -> bool
self and other values to be equal, and is used
by ==.source§impl RequestId for TranslateDocumentOutput
impl RequestId for TranslateDocumentOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None if the service could not be reached.