Struct malwaredb_server::db::types::FileMetadata
source · pub struct FileMetadata {Show 14 fields
pub name: Option<String>,
pub size: u32,
pub entropy: f32,
pub sha1: String,
pub sha256: String,
pub sha384: String,
pub sha512: String,
pub md5: String,
pub lzjd: Option<String>,
pub ssdeep: Option<String>,
pub sdhash: Option<String>,
pub tlsh: Option<String>,
pub humanhash: String,
pub file_command: String,
}
Expand description
Metadata about a file for storing as a record in MalwareDB
Fields§
§name: Option<String>
File name
size: u32
Size in bytes
entropy: f32
Entropy of the file
sha1: String
SHA-1 hash
sha256: String
SHA-256 hash
sha384: String
SHA-384 hash
sha512: String
SHA-512 hash
md5: String
MD5 hash
lzjd: Option<String>
LZJD similarity hash
ssdeep: Option<String>
SSDeep similarity hash, if the file is large enough
sdhash: Option<String>
SDHash, not yet implemented! So always None
currently.
tlsh: Option<String>
Trend Micro’s similarity hash (distance metric)
humanhash: String
Human Hash, based on https://github.com/zacharyvoase/humanhash
file_command: String
File command (or libmagic) description of the file
Implementations§
Trait Implementations§
source§impl Clone for FileMetadata
impl Clone for FileMetadata
source§fn clone(&self) -> FileMetadata
fn clone(&self) -> FileMetadata
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 moreAuto Trait Implementations§
impl Freeze for FileMetadata
impl RefUnwindSafe for FileMetadata
impl Send for FileMetadata
impl Sync for FileMetadata
impl Unpin for FileMetadata
impl UnwindSafe for FileMetadata
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