Struct aws_sdk_translate::input::TranslateTextInput [−][src]
#[non_exhaustive]pub struct TranslateTextInput {
pub text: Option<String>,
pub terminology_names: Option<Vec<String>>,
pub source_language_code: Option<String>,
pub target_language_code: Option<String>,
}
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.text: Option<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.
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.
source_language_code: Option<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: Option<String>
The language code requested for the language of the target text. The language must be a language supported by Amazon Translate.
Implementations
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<TranslateText, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<TranslateText, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<TranslateText
>
Creates a new builder-style object to manufacture TranslateTextInput
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.
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.
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.
The language code requested for the language of the target text. The language must be a language supported by Amazon Translate.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for TranslateTextInput
impl Send for TranslateTextInput
impl Sync for TranslateTextInput
impl Unpin for TranslateTextInput
impl UnwindSafe for TranslateTextInput
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more