pub struct FilterStatistics {
pub total_items_processed: usize,
pub filtered_by_score: usize,
pub filtered_by_risk: usize,
pub filtered_by_complexity: usize,
pub filtered_as_duplicate: usize,
pub items_added: usize,
}Expand description
Tracks filtering statistics for debugging and telemetry.
These statistics help identify why items are being filtered out, which is crucial for debugging filtering issues.
Fields§
§total_items_processed: usizeTotal number of items processed (attempted to add)
filtered_by_score: usizeItems filtered due to score below threshold
filtered_by_risk: usizeItems filtered due to risk score below threshold
filtered_by_complexity: usizeItems filtered due to complexity below threshold
filtered_as_duplicate: usizeItems filtered as duplicates
items_added: usizeItems successfully added
Implementations§
Source§impl FilterStatistics
impl FilterStatistics
Sourcepub fn total_filtered(&self) -> usize
pub fn total_filtered(&self) -> usize
Get total items filtered (all rejection reasons).
Sourcepub fn acceptance_rate(&self) -> f64
pub fn acceptance_rate(&self) -> f64
Get acceptance rate (percentage added vs processed).
Trait Implementations§
Source§impl Clone for FilterStatistics
impl Clone for FilterStatistics
Source§fn clone(&self) -> FilterStatistics
fn clone(&self) -> FilterStatistics
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 FilterStatistics
impl Debug for FilterStatistics
Source§impl Default for FilterStatistics
impl Default for FilterStatistics
Source§fn default() -> FilterStatistics
fn default() -> FilterStatistics
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FilterStatistics
impl<'de> Deserialize<'de> for FilterStatistics
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 FilterStatistics
impl RefUnwindSafe for FilterStatistics
impl Send for FilterStatistics
impl Sync for FilterStatistics
impl Unpin for FilterStatistics
impl UnwindSafe for FilterStatistics
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> 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