#[non_exhaustive]pub struct ImageClassificationPredictionInstance {
pub content: String,
pub mime_type: String,
/* private fields */
}Expand description
Prediction input format for Image Classification.
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 ImageClassificationPredictionInstance
impl ImageClassificationPredictionInstance
Trait Implementations§
Source§impl Clone for ImageClassificationPredictionInstance
impl Clone for ImageClassificationPredictionInstance
Source§fn clone(&self) -> ImageClassificationPredictionInstance
fn clone(&self) -> ImageClassificationPredictionInstance
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 ImageClassificationPredictionInstance
impl Default for ImageClassificationPredictionInstance
Source§fn default() -> ImageClassificationPredictionInstance
fn default() -> ImageClassificationPredictionInstance
Returns the “default value” for a type. Read more
Source§impl PartialEq for ImageClassificationPredictionInstance
impl PartialEq for ImageClassificationPredictionInstance
Source§fn eq(&self, other: &ImageClassificationPredictionInstance) -> bool
fn eq(&self, other: &ImageClassificationPredictionInstance) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ImageClassificationPredictionInstance
Auto Trait Implementations§
impl Freeze for ImageClassificationPredictionInstance
impl RefUnwindSafe for ImageClassificationPredictionInstance
impl Send for ImageClassificationPredictionInstance
impl Sync for ImageClassificationPredictionInstance
impl Unpin for ImageClassificationPredictionInstance
impl UnwindSafe for ImageClassificationPredictionInstance
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