#[non_exhaustive]pub enum SimilarityHashType {
SSDeep,
LZJD,
TLSH,
PEHash,
ImportHash,
FuzzyImportHash,
}
Expand description
The hash by which a sample is identified
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
SSDeep
SSDeep
similarity of the whole file
LZJD
LZJD
similarity of the whole file
TLSH
TLSH similarity of the hole file
PEHash
PEHash
, for PE32 files
ImportHash
Import Hash for executable files
FuzzyImportHash
SSDeep
fuzzy hash of the import data, for executable files
Implementations§
Source§impl SimilarityHashType
impl SimilarityHashType
Sourcepub fn get_table_field_simfunc(&self) -> (&'static str, Option<&'static str>)
pub fn get_table_field_simfunc(&self) -> (&'static str, Option<&'static str>)
For a similarity hash type, return:
- The database table & field which stores the hash
- If applicable, the similarity hash function (Postgres extension) which calculates the similarity
Trait Implementations§
Source§impl Clone for SimilarityHashType
impl Clone for SimilarityHashType
Source§fn clone(&self) -> SimilarityHashType
fn clone(&self) -> SimilarityHashType
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 moreSource§impl Debug for SimilarityHashType
impl Debug for SimilarityHashType
Source§impl<'de> Deserialize<'de> for SimilarityHashType
impl<'de> Deserialize<'de> for SimilarityHashType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for SimilarityHashType
impl Display for SimilarityHashType
Source§impl PartialEq for SimilarityHashType
impl PartialEq for SimilarityHashType
Source§impl Serialize for SimilarityHashType
impl Serialize for SimilarityHashType
impl Copy for SimilarityHashType
impl Eq for SimilarityHashType
impl StructuralPartialEq for SimilarityHashType
Auto Trait Implementations§
impl Freeze for SimilarityHashType
impl RefUnwindSafe for SimilarityHashType
impl Send for SimilarityHashType
impl Sync for SimilarityHashType
impl Unpin for SimilarityHashType
impl UnwindSafe for SimilarityHashType
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