pub struct SourceStats {
pub contributions: usize,
pub kept: usize,
pub tokens: usize,
pub priority: Priority,
}Expand description
Per-source stats kept on the BriefReceipt.
The builder fills one entry per crate::source::Source it called,
regardless of whether that source contributed surviving items — a source
that returned 0 contributions or had all its contributions pruned still
gets a SourceStats entry with the corresponding counts so the receipt
is exhaustive.
Fields§
§contributions: usizeNumber of crate::source::Contributions the source returned.
kept: usizeNumber of contributions that survived budget pruning and governance.
tokens: usizeTotal tokens attributed to the source after pruning.
priority: PrioritySource’s Priority at the time of the build.
Trait Implementations§
Source§impl Clone for SourceStats
impl Clone for SourceStats
Source§fn clone(&self) -> SourceStats
fn clone(&self) -> SourceStats
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 SourceStats
impl Debug for SourceStats
Source§impl<'de> Deserialize<'de> for SourceStats
impl<'de> Deserialize<'de> for SourceStats
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
impl Eq for SourceStats
Source§impl PartialEq for SourceStats
impl PartialEq for SourceStats
Source§fn eq(&self, other: &SourceStats) -> bool
fn eq(&self, other: &SourceStats) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SourceStats
impl Serialize for SourceStats
impl StructuralPartialEq for SourceStats
Auto Trait Implementations§
impl Freeze for SourceStats
impl RefUnwindSafe for SourceStats
impl Send for SourceStats
impl Sync for SourceStats
impl Unpin for SourceStats
impl UnsafeUnpin for SourceStats
impl UnwindSafe for SourceStats
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