#[non_exhaustive]pub enum SimilarityHashType {
SSDeep,
SDHash,
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.
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§fn eq(&self, other: &SimilarityHashType) -> bool
fn eq(&self, other: &SimilarityHashType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SimilarityHashType
impl Serialize for SimilarityHashType
impl Copy for SimilarityHashType
impl Eq for SimilarityHashType
impl StructuralEq for SimilarityHashType
impl StructuralPartialEq for SimilarityHashType
Auto Trait Implementations§
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