pub struct FileType {
pub name: &'static str,
pub extensions: &'static [&'static str],
pub uti: Option<&'static str>,
pub mime: Option<&'static str>,
}Expand description
A supported document file type.
Fields§
§name: &'static strThe human-readable file type name.
extensions: &'static [&'static str]The supported filename extensions, without leading dots.
uti: Option<&'static str>The macOS uniform type identifier if one exists.
mime: Option<&'static str>The MIME type if one exists.
Trait Implementations§
impl Copy for FileType
impl Eq for FileType
impl StructuralPartialEq for FileType
Auto Trait Implementations§
impl Freeze for FileType
impl RefUnwindSafe for FileType
impl Send for FileType
impl Sync for FileType
impl Unpin for FileType
impl UnsafeUnpin for FileType
impl UnwindSafe for FileType
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