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,
}
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 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