#[non_exhaustive]pub struct OnlineAbDefinitionBuilder { /* private fields */ }Expand description
A builder for OnlineAbDefinition.
Implementations§
source§impl OnlineAbDefinitionBuilder
impl OnlineAbDefinitionBuilder
sourcepub fn control_treatment_name(self, input: impl Into<String>) -> Self
pub fn control_treatment_name(self, input: impl Into<String>) -> Self
The name of the variation that is the default variation that the other variations are compared to.
sourcepub fn set_control_treatment_name(self, input: Option<String>) -> Self
pub fn set_control_treatment_name(self, input: Option<String>) -> Self
The name of the variation that is the default variation that the other variations are compared to.
sourcepub fn treatment_weights(self, k: impl Into<String>, v: i64) -> Self
pub fn treatment_weights(self, k: impl Into<String>, v: i64) -> Self
Adds a key-value pair to treatment_weights.
To override the contents of this collection use set_treatment_weights.
A set of key-value pairs. The keys are variation names, and the values are the portion of experiment traffic to be assigned to that variation. The traffic portion is specified in thousandths of a percent, so 20,000 for a variation would allocate 20% of the experiment traffic to that variation.
sourcepub fn set_treatment_weights(self, input: Option<HashMap<String, i64>>) -> Self
pub fn set_treatment_weights(self, input: Option<HashMap<String, i64>>) -> Self
A set of key-value pairs. The keys are variation names, and the values are the portion of experiment traffic to be assigned to that variation. The traffic portion is specified in thousandths of a percent, so 20,000 for a variation would allocate 20% of the experiment traffic to that variation.
sourcepub fn build(self) -> OnlineAbDefinition
pub fn build(self) -> OnlineAbDefinition
Consumes the builder and constructs a OnlineAbDefinition.
Trait Implementations§
source§impl Clone for OnlineAbDefinitionBuilder
impl Clone for OnlineAbDefinitionBuilder
source§fn clone(&self) -> OnlineAbDefinitionBuilder
fn clone(&self) -> OnlineAbDefinitionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for OnlineAbDefinitionBuilder
impl Debug for OnlineAbDefinitionBuilder
source§impl Default for OnlineAbDefinitionBuilder
impl Default for OnlineAbDefinitionBuilder
source§fn default() -> OnlineAbDefinitionBuilder
fn default() -> OnlineAbDefinitionBuilder
source§impl PartialEq<OnlineAbDefinitionBuilder> for OnlineAbDefinitionBuilder
impl PartialEq<OnlineAbDefinitionBuilder> for OnlineAbDefinitionBuilder
source§fn eq(&self, other: &OnlineAbDefinitionBuilder) -> bool
fn eq(&self, other: &OnlineAbDefinitionBuilder) -> bool
self and other values to be equal, and is used
by ==.