Struct malwaredb_server::db::types::FileType
source · pub struct FileType {
pub id: i32,
pub name: String,
pub description: Option<String>,
pub magic: Vec<Vec<u8>>,
pub executable: bool,
}
Expand description
File Types known to MalwareDB; a magic number has to be matched to a database ID.
Fields§
§id: i32
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)