pub struct DetectLanguageRequest {
pub content: Option<String>,
pub labels: Option<HashMap<String, String>>,
pub mime_type: Option<String>,
pub model: Option<String>,
}Expand description
The request message for language detection.
§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).
- locations detect language projects (request)
- detect language projects (request)
Fields§
§content: Option<String>The content of the input stored as a string.
labels: Option<HashMap<String, String>>Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. See https://cloud.google.com/translate/docs/advanced/labels for more information.
mime_type: Option<String>Optional. The format of the source text, for example, “text/html”, “text/plain”. If left blank, the MIME type defaults to “text/html”.
model: Option<String>Optional. The language detection model to be used. Format: projects/{project-number-or-id}/locations/{location-id}/models/language-detection/{model-id} Only one language detection model is currently supported: projects/{project-number-or-id}/locations/{location-id}/models/language-detection/default. If not specified, the default model is used.
Trait Implementations§
Source§impl Clone for DetectLanguageRequest
impl Clone for DetectLanguageRequest
Source§fn clone(&self) -> DetectLanguageRequest
fn clone(&self) -> DetectLanguageRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more