pub struct Experiment {
pub id: ExperimentId,
pub project_id: ProjectId,
pub champion_config_id: ConfigId,
pub challenger_config_id: ConfigId,
pub status: ExperimentStatus,
pub traffic_share: f64,
pub started_at: DateTime<Utc>,
pub decided_at: Option<DateTime<Utc>>,
pub decision_posterior: Option<f64>,
}Expand description
One champion-vs-challenger experiment row.
Fields§
§id: ExperimentIdExperiment identity.
project_id: ProjectIdOwning project.
champion_config_id: ConfigIdChampion config under test.
challenger_config_id: ConfigIdChallenger config under test.
status: ExperimentStatusLifecycle state.
Share of sessions routed to challenger (0..=1).
started_at: DateTime<Utc>When the experiment started.
decided_at: Option<DateTime<Utc>>When the decision was reached (only set for non-Running statuses).
decision_posterior: Option<f64>P(challenger > champion) at decision time.
Trait Implementations§
Source§impl Clone for Experiment
impl Clone for Experiment
Source§fn clone(&self) -> Experiment
fn clone(&self) -> Experiment
Returns a duplicate of the value. Read more
1.0.0 · 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 Experiment
impl RefUnwindSafe for Experiment
impl Send for Experiment
impl Sync for Experiment
impl Unpin for Experiment
impl UnsafeUnpin for Experiment
impl UnwindSafe for Experiment
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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