pub struct SimilarSample {
pub sha256: String,
pub algorithms: Vec<(SimilarityHashType, f32)>,
}
Expand description
Relation between a similar sample and the hashes by which the sample is similar
Fields§
§sha256: String
The SHA-256 hash of the found sample
algorithms: Vec<(SimilarityHashType, f32)>
Matches from the requested sample to this sample by algorithm and score
Trait Implementations§
Source§impl Clone for SimilarSample
impl Clone for SimilarSample
Source§fn clone(&self) -> SimilarSample
fn clone(&self) -> SimilarSample
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 SimilarSample
impl Debug for SimilarSample
Source§impl<'de> Deserialize<'de> for SimilarSample
impl<'de> Deserialize<'de> for SimilarSample
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
Auto Trait Implementations§
impl Freeze for SimilarSample
impl RefUnwindSafe for SimilarSample
impl Send for SimilarSample
impl Sync for SimilarSample
impl Unpin for SimilarSample
impl UnwindSafe for SimilarSample
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