pub struct FunnelReport {
pub step_completions: Vec<u64>,
pub conversion_rates: Vec<f64>,
pub drop_offs: Vec<f64>,
}Expand description
Output of a funnel analysis.
Fields§
§step_completions: Vec<u64>Number of users who completed each step (step_completions[i] for step i).
Length equals the number of steps in the definition.
conversion_rates: Vec<f64>Conversion rate from the previous step to this step (1.0 for step 0).
conversion_rates[i] = step_completions[i] / step_completions[i-1].
drop_offs: Vec<f64>Drop-off rate at each step (1.0 - conversion_rates[i]; 0.0 for step 0).
Implementations§
Source§impl FunnelReport
impl FunnelReport
Sourcepub fn overall_completion_rate(&self) -> f64
pub fn overall_completion_rate(&self) -> f64
Overall completion rate: fraction of users who reached the final step relative to those who reached step 0.
Trait Implementations§
Source§impl Clone for FunnelReport
impl Clone for FunnelReport
Source§fn clone(&self) -> FunnelReport
fn clone(&self) -> FunnelReport
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 moreAuto Trait Implementations§
impl Freeze for FunnelReport
impl RefUnwindSafe for FunnelReport
impl Send for FunnelReport
impl Sync for FunnelReport
impl Unpin for FunnelReport
impl UnsafeUnpin for FunnelReport
impl UnwindSafe for FunnelReport
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