Struct google_analytics3::api::ExperimentVariations
source · [−]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
sourceimpl Clone for ExperimentVariations
impl Clone for ExperimentVariations
sourcefn clone(&self) -> ExperimentVariations
fn clone(&self) -> ExperimentVariations
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ExperimentVariations
impl Debug for ExperimentVariations
sourceimpl Default for ExperimentVariations
impl Default for ExperimentVariations
sourcefn default() -> ExperimentVariations
fn default() -> ExperimentVariations
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ExperimentVariations
impl<'de> Deserialize<'de> for ExperimentVariations
sourcefn 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>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for ExperimentVariations
impl Serialize for ExperimentVariations
impl NestedType for ExperimentVariations
impl Part for ExperimentVariations
Auto Trait Implementations
impl RefUnwindSafe for ExperimentVariations
impl Send for ExperimentVariations
impl Sync for ExperimentVariations
impl Unpin for ExperimentVariations
impl UnwindSafe for ExperimentVariations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more