pub struct RollupMetrics {
pub events: BTreeMap<String, usize>,
pub commits: BTreeMap<String, usize>,
pub file_edits: BTreeMap<String, Vec<FileEditStat>>,
pub cost: BTreeMap<String, f64>,
pub quality: BTreeMap<String, (u64, u64)>,
}Expand description
Combined rollup metrics collected in a single pass over the event ledger.
Instead of calling 5 separate functions (each opening ledgers and scanning
all events independently), this struct holds all metrics produced by a
single traversal via rollup_metrics_by_date.
Fields§
§events: BTreeMap<String, usize>§commits: BTreeMap<String, usize>§file_edits: BTreeMap<String, Vec<FileEditStat>>§cost: BTreeMap<String, f64>§quality: BTreeMap<String, (u64, u64)>Auto Trait Implementations§
impl Freeze for RollupMetrics
impl RefUnwindSafe for RollupMetrics
impl Send for RollupMetrics
impl Sync for RollupMetrics
impl Unpin for RollupMetrics
impl UnsafeUnpin for RollupMetrics
impl UnwindSafe for RollupMetrics
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