#[non_exhaustive]pub struct ImageObjectDetectionPredictionInstance {
pub content: String,
pub mime_type: String,
/* private fields */
}Expand description
Prediction input format for Image Object Detection.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.content: StringThe image bytes or Cloud Storage URI to make the prediction on.
mime_type: StringThe MIME type of the content of the image. Only the images in below listed MIME types are supported.
- image/jpeg
- image/gif
- image/png
- image/webp
- image/bmp
- image/tiff
- image/vnd.microsoft.icon
Implementations§
Source§impl ImageObjectDetectionPredictionInstance
impl ImageObjectDetectionPredictionInstance
Trait Implementations§
Source§impl Clone for ImageObjectDetectionPredictionInstance
impl Clone for ImageObjectDetectionPredictionInstance
Source§fn clone(&self) -> ImageObjectDetectionPredictionInstance
fn clone(&self) -> ImageObjectDetectionPredictionInstance
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for ImageObjectDetectionPredictionInstance
impl Default for ImageObjectDetectionPredictionInstance
Source§fn default() -> ImageObjectDetectionPredictionInstance
fn default() -> ImageObjectDetectionPredictionInstance
Returns the “default value” for a type. Read more
Source§impl PartialEq for ImageObjectDetectionPredictionInstance
impl PartialEq for ImageObjectDetectionPredictionInstance
Source§fn eq(&self, other: &ImageObjectDetectionPredictionInstance) -> bool
fn eq(&self, other: &ImageObjectDetectionPredictionInstance) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ImageObjectDetectionPredictionInstance
Auto Trait Implementations§
impl Freeze for ImageObjectDetectionPredictionInstance
impl RefUnwindSafe for ImageObjectDetectionPredictionInstance
impl Send for ImageObjectDetectionPredictionInstance
impl Sync for ImageObjectDetectionPredictionInstance
impl Unpin for ImageObjectDetectionPredictionInstance
impl UnwindSafe for ImageObjectDetectionPredictionInstance
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
Mutably borrows from an owned value. Read more