[][src]Struct gcp_client::google::cloud::translation::v3::Translation

pub struct Translation {
    pub translated_text: String,
    pub model: String,
    pub detected_language_code: String,
    pub glossary_config: Option<TranslateTextGlossaryConfig>,
}

A single translation response.

Fields

translated_text: String

Text translated into the target language.

model: String

Only present when model is present in the request. model here is normalized to have project number.

For example: If the model requested in TranslationTextRequest is projects/{project-id}/locations/{location-id}/models/general/nmt then model here would be normalized to projects/{project-number}/locations/{location-id}/models/general/nmt.

detected_language_code: String

The BCP-47 language code of source text in the initial request, detected automatically, if no source language was passed within the initial request. If the source language was passed, auto-detection of the language does not occur and this field is empty.

glossary_config: Option<TranslateTextGlossaryConfig>

The glossary_config used for this translation.

Trait Implementations

impl Clone for Translation[src]

impl Debug for Translation[src]

impl Default for Translation[src]

impl Message for Translation[src]

impl PartialEq<Translation> for Translation[src]

impl StructuralPartialEq for Translation[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]