pub struct FileMetadata {}Expand description
Metadata about a file for storing as a record in Malware DB
Fields§
§name: Option<String>File name
size: u64File size in bytes
entropy: f32Entropy of the file
sha1: StringSHA-1 hash
sha256: StringSHA-256 hash
sha384: StringSHA-384 hash
sha512: StringSHA-512 hash
md5: StringMD5 hash
lzjd: Option<String>LZJD similarity hash
ssdeep: Option<String>SSDeep similarity hash, if the file is large enough
tlsh: Option<String>Trend Micro’s similarity hash (distance metric)
humanhash: StringHuman Hash, based on https://github.com/zacharyvoase/humanhash
file_command: StringFile 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 duplicate 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