pub struct Totals {
pub clicks: u64,
pub impressions: u64,
pub ctr: f64,
}Expand description
Aggregate totals for a set of rows: clicks, impressions and the pooled CTR.
Fields§
§clicks: u64Summed clicks.
impressions: u64Summed impressions.
ctr: f64Pooled CTR, i.e. clicks / impressions, not a mean of per-row CTRs.
Trait Implementations§
impl Copy for Totals
impl StructuralPartialEq for Totals
Auto Trait Implementations§
impl Freeze for Totals
impl RefUnwindSafe for Totals
impl Send for Totals
impl Sync for Totals
impl Unpin for Totals
impl UnsafeUnpin for Totals
impl UnwindSafe for Totals
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