pub struct SupportedFileType {
pub name: String,
pub magic: Vec<String>,
pub is_executable: bool,
pub description: Option<String>,
}
Expand description
One record of supported file types
Fields§
§name: String
Common name of the file type
magic: Vec<String>
Magic number bytes in hex of the file type
is_executable: bool
Whether the file type is executable
description: Option<String>
Description of the file type
Trait Implementations§
Source§impl Clone for SupportedFileType
impl Clone for SupportedFileType
Source§fn clone(&self) -> SupportedFileType
fn clone(&self) -> SupportedFileType
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SupportedFileType
impl Debug for SupportedFileType
Source§impl<'de> Deserialize<'de> for SupportedFileType
impl<'de> Deserialize<'de> for SupportedFileType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SupportedFileType
impl RefUnwindSafe for SupportedFileType
impl Send for SupportedFileType
impl Sync for SupportedFileType
impl Unpin for SupportedFileType
impl UnwindSafe for SupportedFileType
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