Struct google_translate2::TranslateTextRequest [] [src]

pub struct TranslateTextRequest {
    pub q: Option<Vec<String>>,
    pub source: Option<String>,
    pub model: Option<String>,
    pub target: Option<String>,
    pub format: Option<String>,
}

The main translation request message for the Cloud Translation API.

Activities

This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).

Fields

The input text to translate. Repeat this parameter to perform translation operations on multiple text inputs.

The language of the source text, set to one of the language codes listed in Language Support. If the source language is not specified, the API will attempt to identify the source language automatically and return it within the response.

The model type requested for this translation. Valid values are listed in public documentation.

The language to use for translation of the input text, set to one of the language codes listed in Language Support.

The format of the source text, in either HTML (default) or plain-text. A value of "html" indicates HTML and a value of "text" indicates plain-text.

Trait Implementations

impl Default for TranslateTextRequest
[src]

[src]

Returns the "default value" for a type. Read more

impl Clone for TranslateTextRequest
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for TranslateTextRequest
[src]

[src]

Formats the value using the given formatter.

impl RequestValue for TranslateTextRequest
[src]