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

pub struct DocumentInputConfig {
    pub mime_type: String,
    pub source: Option<Source>,
}

A document translation request input config.

Fields

mime_type: String

Specifies the input document’s mime_type.

If not specified it will be determined using the file extension for gcs_source provided files. For a file provided through bytes content the mime_type must be provided. Currently supported mime types are:

source: Option<Source>

Specifies the source for the document’s content. The input file size should be <= 20MB for

Trait Implementations

impl Clone for DocumentInputConfig[src]

impl Debug for DocumentInputConfig[src]

impl Default for DocumentInputConfig[src]

impl Message for DocumentInputConfig[src]

impl PartialEq<DocumentInputConfig> for DocumentInputConfig[src]

impl StructuralPartialEq for DocumentInputConfig[src]

Auto Trait Implementations

impl RefUnwindSafe for DocumentInputConfig

impl Send for DocumentInputConfig

impl Sync for DocumentInputConfig

impl Unpin for DocumentInputConfig

impl UnwindSafe for DocumentInputConfig

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]