pub enum MimeKind {
TextPlain,
TextHtml,
TextUriList,
ImagePng,
ImageJpeg,
ApplicationOctet,
Custom(Arc<str>),
}Expand description
A single MIME-typed payload entry kind.
Mirrors the well-known content types Qt’s QMimeData exposes via
text(), html(), urls(), imageData(), setData(mime, bytes).
Unknown / app-specific MIME types live under MimeKind::Custom.
Variants§
TextPlain
text/plain;charset=utf-8.
TextHtml
text/html.
TextUriList
text/uri-list (RFC 2483) - newline-separated URIs / file://
paths. Standard format used by file managers for drag-and-drop.
ImagePng
image/png.
ImageJpeg
image/jpeg.
ApplicationOctet
application/octet-stream - opaque bytes.
Custom(Arc<str>)
Any other MIME type (application/json, application/x-myapp,
…). The Arc<str> is shared so cheap to clone.
Implementations§
Trait Implementations§
impl Eq for MimeKind
impl StructuralPartialEq for MimeKind
Auto Trait Implementations§
impl Freeze for MimeKind
impl RefUnwindSafe for MimeKind
impl Send for MimeKind
impl Sync for MimeKind
impl Unpin for MimeKind
impl UnsafeUnpin for MimeKind
impl UnwindSafe for MimeKind
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