pub struct FileType {
pub id: u32,
pub name: String,
pub description: Option<String>,
pub magic: Vec<Vec<u8>>,
pub executable: bool,
}
Expand description
File Types known to Malware DB; a magic number has to be matched to a database ID.
Fields§
§id: u32
Database ID number
name: String
Friendly name
description: Option<String>
Description of the type
magic: Vec<Vec<u8>>
Magic numbers as bytes These are the first few bytes of the file which identify it’s type Some types have more than one possible magic number, though it’s rare
executable: bool
Whether or not this file is executable on some system Assumption: if not executable, it’s a document
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileType
impl RefUnwindSafe for FileType
impl Send for FileType
impl Sync for FileType
impl Unpin 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