[][src]Struct google_vision1::AnnotateFileRequest

pub struct AnnotateFileRequest {
    pub image_context: Option<ImageContext>,
    pub pages: Option<Vec<i32>>,
    pub features: Option<Vec<Feature>>,
    pub input_config: Option<InputConfig>,
}

A request to annotate one single file, e.g. a PDF, TIFF or GIF file.

This type is not used in any activity, and only used as part of another schema.

Fields

image_context: Option<ImageContext>

Additional context that may accompany the image(s) in the file.

pages: Option<Vec<i32>>

Pages of the file to perform image annotation.

Pages starts from 1, we assume the first page of the file is page 1. At most 5 pages are supported per request. Pages can be negative.

Page 1 means the first page. Page 2 means the second page. Page -1 means the last page. Page -2 means the second to the last page.

If the file is GIF instead of PDF or TIFF, page refers to GIF frames.

If this field is empty, by default the service performs image annotation for the first 5 pages of the file.

features: Option<Vec<Feature>>

Required. Requested features.

input_config: Option<InputConfig>

Required. Information about the input file.

Trait Implementations

impl Part for AnnotateFileRequest[src]

impl Clone for AnnotateFileRequest[src]

impl Default for AnnotateFileRequest[src]

impl Debug for AnnotateFileRequest[src]

impl Serialize for AnnotateFileRequest[src]

impl<'de> Deserialize<'de> for AnnotateFileRequest[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T, U> Into<U> for T where
    U: From<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 = !

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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Typeable for T where
    T: Any

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]