pub struct ExperimentVariations {
pub name: Option<String>,
pub status: Option<String>,
pub url: Option<String>,
pub weight: Option<f64>,
pub won: Option<bool>,
}
Expand description
Array of variations. The first variation in the array is the original. The number of variations may not change once an experiment is in the RUNNING state. At least two variations are required before status can be set to RUNNING.
This type is not used in any activity, and only used as part of another schema.
Fields§
§name: Option<String>
The name of the variation. This field is required when creating an experiment. This field may not be changed for an experiment whose status is ENDED.
status: Option<String>
Status of the variation. Possible values: “ACTIVE”, “INACTIVE”. INACTIVE variations are not served. This field may not be changed for an experiment whose status is ENDED.
url: Option<String>
The URL of the variation. This field may not be changed for an experiment whose status is RUNNING or ENDED.
weight: Option<f64>
Weight that this variation should receive. Only present if the experiment is running. This field is read-only.
won: Option<bool>
True if the experiment has ended and this variation performed (statistically) significantly better than the original. This field is read-only.
Trait Implementations§
Source§impl Clone for ExperimentVariations
impl Clone for ExperimentVariations
Source§fn clone(&self) -> ExperimentVariations
fn clone(&self) -> ExperimentVariations
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ExperimentVariations
impl Debug for ExperimentVariations
Source§impl Default for ExperimentVariations
impl Default for ExperimentVariations
Source§fn default() -> ExperimentVariations
fn default() -> ExperimentVariations
Source§impl<'de> Deserialize<'de> for ExperimentVariations
impl<'de> Deserialize<'de> for ExperimentVariations
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for ExperimentVariations
impl Serialize for ExperimentVariations
impl NestedType for ExperimentVariations
impl Part for ExperimentVariations
Auto Trait Implementations§
impl Freeze for ExperimentVariations
impl RefUnwindSafe for ExperimentVariations
impl Send for ExperimentVariations
impl Sync for ExperimentVariations
impl Unpin for ExperimentVariations
impl UnwindSafe for ExperimentVariations
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
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>
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>
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