pub enum DetectionStrategy {
ExactHash,
PerceptualHash,
Ssim,
Histogram,
FeatureMatch,
AudioFingerprint,
Metadata,
All,
VisualAll,
Fast,
}Expand description
Detection strategy for finding duplicates.
Variants§
ExactHash
Exact duplicates only (cryptographic hash)
PerceptualHash
Visual similarity using perceptual hashing
Ssim
Visual similarity using SSIM
Histogram
Visual similarity using histogram comparison
FeatureMatch
Visual similarity using feature matching
AudioFingerprint
Audio fingerprint comparison
Metadata
Metadata-based matching
All
All detection methods
VisualAll
Combination of visual methods
Fast
Combination of fast methods (hash + perceptual + metadata)
Implementations§
Source§impl DetectionStrategy
impl DetectionStrategy
Sourcepub fn includes_hash(self) -> bool
pub fn includes_hash(self) -> bool
Check if strategy includes exact hashing.
Sourcepub fn includes_perceptual(self) -> bool
pub fn includes_perceptual(self) -> bool
Check if strategy includes perceptual hashing.
Sourcepub fn includes_ssim(self) -> bool
pub fn includes_ssim(self) -> bool
Check if strategy includes SSIM.
Sourcepub fn includes_histogram(self) -> bool
pub fn includes_histogram(self) -> bool
Check if strategy includes histogram.
Sourcepub fn includes_feature_match(self) -> bool
pub fn includes_feature_match(self) -> bool
Check if strategy includes feature matching.
Sourcepub fn includes_audio(self) -> bool
pub fn includes_audio(self) -> bool
Check if strategy includes audio fingerprinting.
Sourcepub fn includes_metadata(self) -> bool
pub fn includes_metadata(self) -> bool
Check if strategy includes metadata.
Trait Implementations§
Source§impl Clone for DetectionStrategy
impl Clone for DetectionStrategy
Source§fn clone(&self) -> DetectionStrategy
fn clone(&self) -> DetectionStrategy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DetectionStrategy
Source§impl Debug for DetectionStrategy
impl Debug for DetectionStrategy
impl Eq for DetectionStrategy
Source§impl PartialEq for DetectionStrategy
impl PartialEq for DetectionStrategy
Source§fn eq(&self, other: &DetectionStrategy) -> bool
fn eq(&self, other: &DetectionStrategy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DetectionStrategy
Auto Trait Implementations§
impl Freeze for DetectionStrategy
impl RefUnwindSafe for DetectionStrategy
impl Send for DetectionStrategy
impl Sync for DetectionStrategy
impl Unpin for DetectionStrategy
impl UnsafeUnpin for DetectionStrategy
impl UnwindSafe for DetectionStrategy
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more