Struct gapi_grpc::google::cloud::translation::v3beta1::TranslateDocumentResponse[][src]

pub struct TranslateDocumentResponse {
    pub document_translation: Option<DocumentTranslation>,
    pub glossary_document_translation: Option<DocumentTranslation>,
    pub model: String,
    pub glossary_config: Option<TranslateTextGlossaryConfig>,
}

A translated document response message.

Fields

document_translation: Option<DocumentTranslation>

Translated document.

glossary_document_translation: Option<DocumentTranslation>

The document’s translation output if a glossary is provided in the request. This can be the same as [TranslateDocumentResponse.document_translation] if no glossary terms apply.

model: String

Only present when ‘model’ is present in the request. ‘model’ is normalized to have a project number.

For example: If the ‘model’ field in TranslateDocumentRequest 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.

glossary_config: Option<TranslateTextGlossaryConfig>

The glossary_config used for this translation.

Trait Implementations

impl Clone for TranslateDocumentResponse[src]

impl Debug for TranslateDocumentResponse[src]

impl Default for TranslateDocumentResponse[src]

impl Message for TranslateDocumentResponse[src]

impl PartialEq<TranslateDocumentResponse> for TranslateDocumentResponse[src]

impl StructuralPartialEq for TranslateDocumentResponse[src]

Auto Trait Implementations

impl RefUnwindSafe for TranslateDocumentResponse

impl Send for TranslateDocumentResponse

impl Sync for TranslateDocumentResponse

impl Unpin for TranslateDocumentResponse

impl UnwindSafe for TranslateDocumentResponse

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> 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>, 
[src]

impl<T> WithSubscriber for T[src]