Struct google_api_proto::google::cloud::vision::v1::AnnotateImageResponse
source · pub struct AnnotateImageResponse {Show 14 fields
pub face_annotations: Vec<FaceAnnotation>,
pub landmark_annotations: Vec<EntityAnnotation>,
pub logo_annotations: Vec<EntityAnnotation>,
pub label_annotations: Vec<EntityAnnotation>,
pub localized_object_annotations: Vec<LocalizedObjectAnnotation>,
pub text_annotations: Vec<EntityAnnotation>,
pub full_text_annotation: Option<TextAnnotation>,
pub safe_search_annotation: Option<SafeSearchAnnotation>,
pub image_properties_annotation: Option<ImageProperties>,
pub crop_hints_annotation: Option<CropHintsAnnotation>,
pub web_detection: Option<WebDetection>,
pub product_search_results: Option<ProductSearchResults>,
pub error: Option<Status>,
pub context: Option<ImageAnnotationContext>,
}
Expand description
Response to an image annotation request.
Fields§
§face_annotations: Vec<FaceAnnotation>
If present, face detection has completed successfully.
landmark_annotations: Vec<EntityAnnotation>
If present, landmark detection has completed successfully.
logo_annotations: Vec<EntityAnnotation>
If present, logo detection has completed successfully.
label_annotations: Vec<EntityAnnotation>
If present, label detection has completed successfully.
localized_object_annotations: Vec<LocalizedObjectAnnotation>
If present, localized object detection has completed successfully. This will be sorted descending by confidence score.
text_annotations: Vec<EntityAnnotation>
If present, text (OCR) detection has completed successfully.
full_text_annotation: Option<TextAnnotation>
If present, text (OCR) detection or document (OCR) text detection has completed successfully. This annotation provides the structural hierarchy for the OCR detected text.
safe_search_annotation: Option<SafeSearchAnnotation>
If present, safe-search annotation has completed successfully.
image_properties_annotation: Option<ImageProperties>
If present, image properties were extracted successfully.
crop_hints_annotation: Option<CropHintsAnnotation>
If present, crop hints have completed successfully.
web_detection: Option<WebDetection>
If present, web detection has completed successfully.
product_search_results: Option<ProductSearchResults>
If present, product search has completed successfully.
error: Option<Status>
If set, represents the error message for the operation.
Note that filled-in image annotations are guaranteed to be
correct, even when error
is set.
context: Option<ImageAnnotationContext>
If present, contextual information is needed to understand where this image comes from.
Trait Implementations§
source§impl Clone for AnnotateImageResponse
impl Clone for AnnotateImageResponse
source§fn clone(&self) -> AnnotateImageResponse
fn clone(&self) -> AnnotateImageResponse
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AnnotateImageResponse
impl Debug for AnnotateImageResponse
source§impl Default for AnnotateImageResponse
impl Default for AnnotateImageResponse
source§impl Message for AnnotateImageResponse
impl Message for AnnotateImageResponse
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for AnnotateImageResponse
impl PartialEq for AnnotateImageResponse
source§fn eq(&self, other: &AnnotateImageResponse) -> bool
fn eq(&self, other: &AnnotateImageResponse) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AnnotateImageResponse
Auto Trait Implementations§
impl Freeze for AnnotateImageResponse
impl RefUnwindSafe for AnnotateImageResponse
impl Send for AnnotateImageResponse
impl Sync for AnnotateImageResponse
impl Unpin for AnnotateImageResponse
impl UnwindSafe for AnnotateImageResponse
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request