pub enum MediaKind {
Image,
Video,
Audio,
Document,
}Expand description
Broad category of a media file, derived from its MIME type. Used to decide
whether a file becomes an ContentBlock::Image or ContentBlock::Document.
Variants§
Implementations§
Trait Implementations§
impl Copy for MediaKind
impl Eq for MediaKind
impl StructuralPartialEq for MediaKind
Auto Trait Implementations§
impl Freeze 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.