pub enum MediaType<'a> {
Unknown,
Bitmap,
Drawing,
Audio,
Video,
Multimedia,
Office,
Text,
Executable,
Archive,
ThreeDimensional,
Other(&'a str),
}
Expand description
Represents the
img_media_type
field of the image
table.
Variants§
Unknown
Bitmap
Drawing
Audio
Video
Multimedia
Office
Text
Executable
Archive
ThreeDimensional
Other(&'a str)
Trait Implementations§
Source§impl<'de: 'a, 'a> Deserialize<'de> for MediaType<'a>
impl<'de: 'a, 'a> Deserialize<'de> for MediaType<'a>
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
Source§impl<'a> Ord for MediaType<'a>
impl<'a> Ord for MediaType<'a>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> PartialOrd for MediaType<'a>
impl<'a> PartialOrd for MediaType<'a>
impl<'a> Copy for MediaType<'a>
impl<'a> Eq for MediaType<'a>
impl<'a> StructuralPartialEq for MediaType<'a>
Auto Trait Implementations§
impl<'a> Freeze for MediaType<'a>
impl<'a> RefUnwindSafe for MediaType<'a>
impl<'a> Send for MediaType<'a>
impl<'a> Sync for MediaType<'a>
impl<'a> Unpin for MediaType<'a>
impl<'a> UnwindSafe for MediaType<'a>
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