pub struct DocumentFormat {
pub extension: &'static str,
pub mime: &'static str,
pub kind: &'static str,
pub opened_by: Option<&'static str>,
}Expand description
A document format, named by its file extension and media type, with what a person calls it.
Fields§
§extension: &'static str§mime: &'static str§kind: &'static strWhat it is called in a sentence: “a Word document”.
opened_by: Option<&'static str>The app actions that open it, as an agent addresses them; None when none does.
Trait Implementations§
Source§impl Clone for DocumentFormat
impl Clone for DocumentFormat
Source§fn clone(&self) -> DocumentFormat
fn clone(&self) -> DocumentFormat
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DocumentFormat
Source§impl Debug for DocumentFormat
impl Debug for DocumentFormat
impl Eq for DocumentFormat
Source§impl PartialEq for DocumentFormat
impl PartialEq for DocumentFormat
impl StructuralPartialEq for DocumentFormat
Auto Trait Implementations§
impl Forget for DocumentFormat
impl Freeze for DocumentFormat
impl Move for DocumentFormat
impl RefUnwindSafe for DocumentFormat
impl Send for DocumentFormat
impl Sync for DocumentFormat
impl Unpin for DocumentFormat
impl UnsafeUnpin for DocumentFormat
impl UnwindSafe for DocumentFormat
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