Struct rusoto_translate::TranslateTextRequest
source · [−]pub struct TranslateTextRequest {
pub source_language_code: String,
pub target_language_code: String,
pub terminology_names: Option<Vec<String>>,
pub text: String,
}
Fields
source_language_code: String
The language code for the language of the source text. The language must be a language supported by Amazon Translate. For a list of language codes, see what-is-languages.
To have Amazon Translate determine the source language of your text, you can specify auto
in the SourceLanguageCode
field. If you specify auto
, Amazon Translate will call Amazon Comprehend to determine the source language.
target_language_code: String
The language code requested for the language of the target text. The language must be a language supported by Amazon Translate.
terminology_names: Option<Vec<String>>
The name of the terminology list file to be used in the TranslateText request. You can use 1 terminology list at most in a TranslateText
request. Terminology lists can contain a maximum of 256 terms.
text: String
The text to translate. The text string can be a maximum of 5,000 bytes long. Depending on your character set, this may be fewer than 5,000 characters.
Trait Implementations
sourceimpl Clone for TranslateTextRequest
impl Clone for TranslateTextRequest
sourcefn clone(&self) -> TranslateTextRequest
fn clone(&self) -> TranslateTextRequest
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TranslateTextRequest
impl Debug for TranslateTextRequest
sourceimpl Default for TranslateTextRequest
impl Default for TranslateTextRequest
sourcefn default() -> TranslateTextRequest
fn default() -> TranslateTextRequest
Returns the “default value” for a type. Read more
sourceimpl PartialEq<TranslateTextRequest> for TranslateTextRequest
impl PartialEq<TranslateTextRequest> for TranslateTextRequest
sourcefn eq(&self, other: &TranslateTextRequest) -> bool
fn eq(&self, other: &TranslateTextRequest) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &TranslateTextRequest) -> bool
fn ne(&self, other: &TranslateTextRequest) -> bool
This method tests for !=
.
sourceimpl Serialize for TranslateTextRequest
impl Serialize for TranslateTextRequest
impl StructuralPartialEq for TranslateTextRequest
Auto Trait Implementations
impl RefUnwindSafe for TranslateTextRequest
impl Send for TranslateTextRequest
impl Sync for TranslateTextRequest
impl Unpin for TranslateTextRequest
impl UnwindSafe for TranslateTextRequest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more