Struct google_vision1::api::AnnotateFileRequest [−][src]
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
features: Option<Vec<Feature>>Required. Requested features.
image_context: Option<ImageContext>Additional context that may accompany the image(s) in the file.
input_config: Option<InputConfig>Required. Information about the input 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.
Trait Implementations
impl Clone for AnnotateFileRequest[src]
fn clone(&self) -> AnnotateFileRequest[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for AnnotateFileRequest[src]
impl Default for AnnotateFileRequest[src]
fn default() -> AnnotateFileRequest[src]
impl<'de> Deserialize<'de> for AnnotateFileRequest[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl Part for AnnotateFileRequest[src]
impl Serialize for AnnotateFileRequest[src]
Auto Trait Implementations
impl RefUnwindSafe for AnnotateFileRequest
impl Send for AnnotateFileRequest
impl Sync for AnnotateFileRequest
impl Unpin for AnnotateFileRequest
impl UnwindSafe for AnnotateFileRequest
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,