Request for performing Google Cloud Vision API tasks over a user-provided image, with user-requested features, and with context information.
Fields
image
The image to be processed.
features
Requested features.
image_context
Additional context that may accompany the image.
Implementations
new
fn new() -> Self
set_image
fn set_image<T>(self, v: T) -> Self
where
T: std::convert::Into<crate::model::Image>,
Sets the value of [image][crate::model::AnnotateImageRequest::image].
set_or_clear_image
fn set_or_clear_image<T>(self, v: std::option::Option<T>) -> Self
where
T: std::convert::Into<crate::model::Image>,
Sets or clears the value of [image][crate::model::AnnotateImageRequest::image].
set_features
fn set_features<T, V>(self, v: T) -> Self
where
T: std::iter::IntoIterator,
V: std::convert::Into<crate::model::Feature>,
Sets the value of [features][crate::model::AnnotateImageRequest::features].
set_image_context
fn set_image_context<T>(self, v: T) -> Self
where
T: std::convert::Into<crate::model::ImageContext>,
Sets the value of [image_context][crate::model::AnnotateImageRequest::image_context].
set_or_clear_image_context
fn set_or_clear_image_context<T>(self, v: std::option::Option<T>) -> Self
where
T: std::convert::Into<crate::model::ImageContext>,
Sets or clears the value of [image_context][crate::model::AnnotateImageRequest::image_context].