Struct malwaredb_server::db::types::FileMetadata
source · pub struct FileMetadata {}
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
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
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
)