[−][src]Struct google_vision1::ImageMethods
A builder providing access to all methods supported on image resources.
It is not used directly, but through the Vision
hub.
Example
Instantiate a resource builder
extern crate hyper; extern crate hyper_rustls; extern crate yup_oauth2 as oauth2; extern crate google_vision1 as vision1; use std::default::Default; use oauth2::{Authenticator, DefaultAuthenticatorDelegate, ApplicationSecret, MemoryStorage}; use vision1::Vision; let secret: ApplicationSecret = Default::default(); let auth = Authenticator::new(&secret, DefaultAuthenticatorDelegate, hyper::Client::with_connector(hyper::net::HttpsConnector::new(hyper_rustls::TlsClient::new())), <MemoryStorage as Default>::default(), None); let mut hub = Vision::new(hyper::Client::with_connector(hyper::net::HttpsConnector::new(hyper_rustls::TlsClient::new())), auth); // Usually you wouldn't bind this to a variable, but keep calling *CallBuilders* // like `annotate(...)` and `async_batch_annotate(...)` // to build up your call. let rb = hub.images();
Methods
impl<'a, C, A> ImageMethods<'a, C, A>
[src]
pub fn annotate(
&self,
request: BatchAnnotateImagesRequest
) -> ImageAnnotateCall<'a, C, A>
[src]
&self,
request: BatchAnnotateImagesRequest
) -> ImageAnnotateCall<'a, C, A>
Create a builder to help you perform the following task:
Run image detection and annotation for a batch of images.
Arguments
request
- No description provided.
pub fn async_batch_annotate(
&self,
request: AsyncBatchAnnotateImagesRequest
) -> ImageAsyncBatchAnnotateCall<'a, C, A>
[src]
&self,
request: AsyncBatchAnnotateImagesRequest
) -> ImageAsyncBatchAnnotateCall<'a, C, A>
Create a builder to help you perform the following task:
Run asynchronous image detection and annotation for a list of images.
Progress and results can be retrieved through the
google.longrunning.Operations
interface.
Operation.metadata
contains OperationMetadata
(metadata).
Operation.response
contains AsyncBatchAnnotateImagesResponse
(results).
This service will write image annotation outputs to json files in customer GCS bucket, each json file containing BatchAnnotateImagesResponse proto.
Arguments
request
- No description provided.
Trait Implementations
impl<'a, C, A> MethodsBuilder for ImageMethods<'a, C, A>
[src]
Auto Trait Implementations
impl<'a, C, A> !Send for ImageMethods<'a, C, A>
impl<'a, C, A> !Sync for ImageMethods<'a, C, A>
impl<'a, C, A> Unpin for ImageMethods<'a, C, A>
impl<'a, C, A> !UnwindSafe for ImageMethods<'a, C, A>
impl<'a, C, A> !RefUnwindSafe for ImageMethods<'a, C, A>
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Typeable for T where
T: Any,
T: Any,