[][src]Struct gcp_client::google::cloud::vision::v1p4beta1::AnnotateFileRequest

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

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

Fields

input_config: Option<InputConfig>

Required. Information about the input file.

features: Vec<Feature>

Required. Requested features.

image_context: Option<ImageContext>

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

pages: 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.

Trait Implementations

impl Clone for AnnotateFileRequest[src]

impl Debug for AnnotateFileRequest[src]

impl Default for AnnotateFileRequest[src]

impl Message for AnnotateFileRequest[src]

impl PartialEq<AnnotateFileRequest> for AnnotateFileRequest[src]

impl StructuralPartialEq for AnnotateFileRequest[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]