pub struct CtrVariant {
pub item_id: String,
pub ctr: f64,
pub ci_lower: f64,
pub ci_upper: f64,
pub impressions: u64,
pub clicks: u64,
}Expand description
A summarised variant for ranking and A/B reporting.
Fields§
§item_id: StringItem identifier.
ctr: f64Raw CTR in [0.0, 1.0].
ci_lower: f64Wilson 95 % confidence lower bound.
ci_upper: f64Wilson 95 % confidence upper bound.
impressions: u64Total impressions recorded.
clicks: u64Total clicks recorded.
Trait Implementations§
Source§impl Clone for CtrVariant
impl Clone for CtrVariant
Source§fn clone(&self) -> CtrVariant
fn clone(&self) -> CtrVariant
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 CtrVariant
impl Debug for CtrVariant
Source§impl PartialEq for CtrVariant
impl PartialEq for CtrVariant
Source§fn eq(&self, other: &CtrVariant) -> bool
fn eq(&self, other: &CtrVariant) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CtrVariant
Auto Trait Implementations§
impl Freeze for CtrVariant
impl RefUnwindSafe for CtrVariant
impl Send for CtrVariant
impl Sync for CtrVariant
impl Unpin for CtrVariant
impl UnsafeUnpin for CtrVariant
impl UnwindSafe for CtrVariant
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