pub struct SpamFilterConfigSerializable {Show 26 fields
pub filter_ordinals: bool,
pub filter_dust: bool,
pub filter_brc20: bool,
pub filter_large_witness: bool,
pub filter_low_fee_rate: bool,
pub filter_high_size_value_ratio: bool,
pub filter_many_small_outputs: bool,
pub dust_threshold: i64,
pub min_output_value: i64,
pub min_fee_rate: u64,
pub max_witness_size: usize,
pub max_size_value_ratio: f64,
pub max_small_outputs: usize,
pub use_adaptive_thresholds: bool,
pub adaptive_thresholds: WitnessSizeThresholdsSerializable,
pub filter_taproot_spam: bool,
pub max_taproot_control_size: usize,
pub reject_taproot_annexes: bool,
pub filter_large_total_witness: bool,
pub max_total_witness_size: usize,
pub use_improved_envelope_detection: bool,
pub use_json_validation_brc20: bool,
pub require_utxo_for_fee_rate: bool,
pub min_fee_rate_large_tx: u64,
pub large_tx_threshold_bytes: usize,
pub ordinals_strict_mode: bool,
}Expand description
Serializable spam filter configuration (for config files)
Fields§
§filter_ordinals: bool§filter_dust: bool§filter_brc20: bool§filter_large_witness: bool§filter_low_fee_rate: bool§filter_high_size_value_ratio: bool§filter_many_small_outputs: bool§dust_threshold: i64§min_output_value: i64§min_fee_rate: u64§max_witness_size: usize§max_size_value_ratio: f64§max_small_outputs: usize§use_adaptive_thresholds: bool§adaptive_thresholds: WitnessSizeThresholdsSerializable§filter_taproot_spam: bool§max_taproot_control_size: usize§reject_taproot_annexes: bool§filter_large_total_witness: bool§max_total_witness_size: usize§use_improved_envelope_detection: bool§use_json_validation_brc20: bool§require_utxo_for_fee_rate: bool§min_fee_rate_large_tx: u64§large_tx_threshold_bytes: usize§ordinals_strict_mode: boolTrait Implementations§
Source§impl Clone for SpamFilterConfigSerializable
impl Clone for SpamFilterConfigSerializable
Source§fn clone(&self) -> SpamFilterConfigSerializable
fn clone(&self) -> SpamFilterConfigSerializable
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 moreSource§impl Debug for SpamFilterConfigSerializable
impl Debug for SpamFilterConfigSerializable
Source§impl<'de> Deserialize<'de> for SpamFilterConfigSerializable
impl<'de> Deserialize<'de> for SpamFilterConfigSerializable
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 From<SpamFilterConfig> for SpamFilterConfigSerializable
impl From<SpamFilterConfig> for SpamFilterConfigSerializable
Source§fn from(config: SpamFilterConfig) -> Self
fn from(config: SpamFilterConfig) -> Self
Converts to this type from the input type.
Source§impl From<SpamFilterConfigSerializable> for SpamFilterConfig
impl From<SpamFilterConfigSerializable> for SpamFilterConfig
Source§fn from(serializable: SpamFilterConfigSerializable) -> Self
fn from(serializable: SpamFilterConfigSerializable) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SpamFilterConfigSerializable
impl PartialEq for SpamFilterConfigSerializable
Source§fn eq(&self, other: &SpamFilterConfigSerializable) -> bool
fn eq(&self, other: &SpamFilterConfigSerializable) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SpamFilterConfigSerializable
Auto Trait Implementations§
impl Freeze for SpamFilterConfigSerializable
impl RefUnwindSafe for SpamFilterConfigSerializable
impl Send for SpamFilterConfigSerializable
impl Sync for SpamFilterConfigSerializable
impl Unpin for SpamFilterConfigSerializable
impl UnsafeUnpin for SpamFilterConfigSerializable
impl UnwindSafe for SpamFilterConfigSerializable
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<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