#[non_exhaustive]pub struct UnsupportedLanguagePairException { /* private fields */ }Expand description
Amazon Translate does not support translation from the language of the source text into the requested target language. For more information, see Error messages.
Implementations§
source§impl UnsupportedLanguagePairException
impl UnsupportedLanguagePairException
sourcepub fn source_language_code(&self) -> Option<&str>
pub fn source_language_code(&self) -> Option<&str>
The language code for the language of the input text.
sourcepub fn target_language_code(&self) -> Option<&str>
pub fn target_language_code(&self) -> Option<&str>
The language code for the language of the translated text.
source§impl UnsupportedLanguagePairException
impl UnsupportedLanguagePairException
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture UnsupportedLanguagePairException.
Trait Implementations§
source§impl Clone for UnsupportedLanguagePairException
impl Clone for UnsupportedLanguagePairException
source§fn clone(&self) -> UnsupportedLanguagePairException
fn clone(&self) -> UnsupportedLanguagePairException
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Error for UnsupportedLanguagePairException
impl Error for UnsupportedLanguagePairException
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl PartialEq<UnsupportedLanguagePairException> for UnsupportedLanguagePairException
impl PartialEq<UnsupportedLanguagePairException> for UnsupportedLanguagePairException
source§fn eq(&self, other: &UnsupportedLanguagePairException) -> bool
fn eq(&self, other: &UnsupportedLanguagePairException) -> bool
This method tests for
self and other values to be equal, and is used
by ==.