pub enum SpamFilterPreset {
Disabled,
Conservative,
Moderate,
Aggressive,
StrictInscriptions,
}Expand description
Spam filter preset configurations
Presets provide easy-to-use configurations for common use cases.
Variants§
Disabled
No spam filtering (all transactions pass)
Conservative
Lenient filtering, minimal false positives
- Higher thresholds
- Only obvious spam patterns
Moderate
Balanced filtering (default)
- Standard thresholds
- Comprehensive detection
Aggressive
Strong filtering, may have false positives
- Lower thresholds
- Aggressive detection
StrictInscriptions
Research/strict: Ordinals = envelope/pattern only, LargeWitness separate
- ordinals_strict_mode: true (no large-witness heuristic in Ordinals)
- All spam categories enabled but properly separated
- Minimizes false positives (Miniscript, vaults not misclassified)
Implementations§
Source§impl SpamFilterPreset
impl SpamFilterPreset
Sourcepub fn to_config(&self) -> SpamFilterConfig
pub fn to_config(&self) -> SpamFilterConfig
Convert preset to configuration
Trait Implementations§
Source§impl Clone for SpamFilterPreset
impl Clone for SpamFilterPreset
Source§fn clone(&self) -> SpamFilterPreset
fn clone(&self) -> SpamFilterPreset
Returns a duplicate 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 SpamFilterPreset
impl Debug for SpamFilterPreset
Source§impl PartialEq for SpamFilterPreset
impl PartialEq for SpamFilterPreset
impl Copy for SpamFilterPreset
impl Eq for SpamFilterPreset
impl StructuralPartialEq for SpamFilterPreset
Auto Trait Implementations§
impl Freeze for SpamFilterPreset
impl RefUnwindSafe for SpamFilterPreset
impl Send for SpamFilterPreset
impl Sync for SpamFilterPreset
impl Unpin for SpamFilterPreset
impl UnsafeUnpin for SpamFilterPreset
impl UnwindSafe for SpamFilterPreset
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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