pub struct FormatInfo {
pub kind: FormatKind,
pub name: &'static str,
pub mime: &'static str,
pub extensions: &'static [&'static str],
pub binary: bool,
}Expand description
Metadata for one registered format.
Fields§
§kind: FormatKindThe format marker type (zero-sized).
name: &'static strCanonical name, e.g. "json".
mime: &'static strMIME type.
extensions: &'static [&'static str]File extensions.
binary: boolWhether the wire representation is binary.
Trait Implementations§
Source§impl Clone for FormatInfo
impl Clone for FormatInfo
Source§fn clone(&self) -> FormatInfo
fn clone(&self) -> FormatInfo
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 FormatInfo
Auto Trait Implementations§
impl Freeze for FormatInfo
impl RefUnwindSafe for FormatInfo
impl Send for FormatInfo
impl Sync for FormatInfo
impl Unpin for FormatInfo
impl UnsafeUnpin for FormatInfo
impl UnwindSafe for FormatInfo
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