Struct AnnotateImageRequest (0.5.0)

Richiesta per l'esecuzione di attività dell'API Google Cloud Vision su un'immagine fornita dall'utente, con funzionalità richieste dall'utente e informazioni sul contesto.

Campi

immagine

L'immagine da elaborare.

funzionalità

Funzionalità richieste.

image_context

Contesto aggiuntivo che potrebbe accompagnare l'immagine.

Implementazioni

nuovo

 fn new() -> Self

set_image

 fn set_image<T>(self, v: T) -> Self
where
    T: std::convert::Into<crate::model::Image>,

Imposta il valore di [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>,

Imposta o cancella il valore di [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>,

Imposta il valore di [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>,

Imposta il valore di [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>,

Imposta o cancella il valore di [image_context][crate::model::AnnotateImageRequest::image_context].