pub enum MediaKind {
Image,
AnimatedGif,
LivePhoto,
Video,
Audio,
Pdf,
Html,
Svg,
}Expand description
High-level semantic category covering every supported cross-platform media format.
Variants§
Image
Static raster image (PNG, JPEG, WebP, BMP, HEIC, AVIF, raw RGBA).
AnimatedGif
Multi-frame animated GIF image sequence.
LivePhoto
Apple/Android-style LIVE Photo pairing a high-res still with a motion clip and audio pulse.
Video
Timed video stream or frame sequence with audio, captions, and seekable playback.
Audio
Digital audio track with waveform visualization and playback controls.
Multi-page Portable Document Format (%PDF-1.x) document.
Html
Sanitized rich HTML document rendered natively without a WebView or JavaScript.
Svg
Scalable Vector Graphics (<svg>) document rasterized natively.
Trait Implementations§
impl Copy for MediaKind
Source§impl<'de> Deserialize<'de> for MediaKind
impl<'de> Deserialize<'de> for MediaKind
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 MediaKind
impl StructuralPartialEq for MediaKind
Auto Trait Implementations§
impl Forget for MediaKind
impl Freeze for MediaKind
impl Move for MediaKind
impl RefUnwindSafe for MediaKind
impl Send for MediaKind
impl Sync for MediaKind
impl Unpin for MediaKind
impl UnsafeUnpin for MediaKind
impl UnwindSafe for MediaKind
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