pub enum ImageContentMimeType {
TypeUnspecified,
TypePng,
TypeJpeg,
TypeWebp,
TypeHeic,
TypeHeif,
TypeGif,
TypeBmp,
TypeTiff,
TypeVideoFrameJpeg2000,
TypeVideoJpeg2000,
Unknown(String),
}Expand description
genai.ImageContent.MimeType
Variants§
TypeUnspecified
TypePng
TypeJpeg
TypeWebp
TypeHeic
TypeHeif
TypeGif
TypeBmp
TypeTiff
TypeVideoFrameJpeg2000
TypeVideoJpeg2000
Unknown(String)
A value this crate does not know about yet.
The harness is versioned independently of this crate, so an unrecognised enum value is treated as forward compatibility rather than as a decode error.
Implementations§
Trait Implementations§
Source§impl Clone for ImageContentMimeType
impl Clone for ImageContentMimeType
Source§fn clone(&self) -> ImageContentMimeType
fn clone(&self) -> ImageContentMimeType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ImageContentMimeType
impl Debug for ImageContentMimeType
Source§impl Default for ImageContentMimeType
impl Default for ImageContentMimeType
Source§fn default() -> ImageContentMimeType
fn default() -> ImageContentMimeType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ImageContentMimeType
impl<'de> Deserialize<'de> for ImageContentMimeType
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ImageContentMimeType
impl Display for ImageContentMimeType
impl Eq for ImageContentMimeType
Source§impl Hash for ImageContentMimeType
impl Hash for ImageContentMimeType
Source§impl PartialEq for ImageContentMimeType
impl PartialEq for ImageContentMimeType
Source§impl Serialize for ImageContentMimeType
impl Serialize for ImageContentMimeType
impl StructuralPartialEq for ImageContentMimeType
Auto Trait Implementations§
impl Freeze for ImageContentMimeType
impl RefUnwindSafe for ImageContentMimeType
impl Send for ImageContentMimeType
impl Sync for ImageContentMimeType
impl Unpin for ImageContentMimeType
impl UnsafeUnpin for ImageContentMimeType
impl UnwindSafe for ImageContentMimeType
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