Struct aws_sdk_evidently::types::OnlineAbDefinition
source · #[non_exhaustive]pub struct OnlineAbDefinition {
pub control_treatment_name: Option<String>,
pub treatment_weights: Option<HashMap<String, i64>>,
}
Expand description
A structure that contains the configuration of which variation to use as the "control" version. The "control" version is used for comparison with other variations. This structure also specifies how much experiment traffic is allocated to each variation.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.control_treatment_name: Option<String>
The name of the variation that is the default variation that the other variations are compared to.
treatment_weights: Option<HashMap<String, i64>>
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.
Implementations§
source§impl OnlineAbDefinition
impl OnlineAbDefinition
sourcepub fn control_treatment_name(&self) -> Option<&str>
pub fn control_treatment_name(&self) -> Option<&str>
The name of the variation that is the default variation that the other variations are compared to.
sourcepub fn treatment_weights(&self) -> Option<&HashMap<String, i64>>
pub fn treatment_weights(&self) -> Option<&HashMap<String, i64>>
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.
source§impl OnlineAbDefinition
impl OnlineAbDefinition
sourcepub fn builder() -> OnlineAbDefinitionBuilder
pub fn builder() -> OnlineAbDefinitionBuilder
Creates a new builder-style object to manufacture OnlineAbDefinition
.
Trait Implementations§
source§impl Clone for OnlineAbDefinition
impl Clone for OnlineAbDefinition
source§fn clone(&self) -> OnlineAbDefinition
fn clone(&self) -> OnlineAbDefinition
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for OnlineAbDefinition
impl Debug for OnlineAbDefinition
source§impl PartialEq for OnlineAbDefinition
impl PartialEq for OnlineAbDefinition
source§fn eq(&self, other: &OnlineAbDefinition) -> bool
fn eq(&self, other: &OnlineAbDefinition) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for OnlineAbDefinition
Auto Trait Implementations§
impl Freeze for OnlineAbDefinition
impl RefUnwindSafe for OnlineAbDefinition
impl Send for OnlineAbDefinition
impl Sync for OnlineAbDefinition
impl Unpin for OnlineAbDefinition
impl UnwindSafe for OnlineAbDefinition
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> 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