pub enum ImageType {
Jpeg,
Webp,
Unknown,
Unrecognized(String),
}Expand description
Image format of a given image.
Variants§
Jpeg
jpeg
Webp
webp
Unknown
unknown
Unrecognized(String)
A value this vendored schema does not list. Chrome adds values ahead of the published protocol, so an unrecognised one is kept as it arrived rather than failing the payload it came in.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ImageType
impl<'de> Deserialize<'de> for ImageType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ImageType
impl StructuralPartialEq for ImageType
Auto Trait Implementations§
impl Forget for ImageType
impl Freeze for ImageType
impl RefUnwindSafe for ImageType
impl Send for ImageType
impl Sync for ImageType
impl Unpin for ImageType
impl UnsafeUnpin for ImageType
impl UnwindSafe for ImageType
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