pub struct FileMetadata {}
Expand description
Metadata about a file for storing as a record in Malware DB
Fields§
§name: Option<String>
File name
size: u64
File 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
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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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