pub struct WeightedVariation {
pub variation: VariationIndex,
pub weight: f32,
pub untracked: bool,
}
Expand description
WeightedVariation describes a fraction of users who will receive a specific variation.
Fields
variation: VariationIndex
The index of the variation to be returned if the user is in this bucket. This is always a real variation index; it cannot be undefined.
weight: f32
The proportion of users who should go into this bucket, as an integer from 0 to 100000.
untracked: bool
Untracked means that users allocated to this variation should not have tracking events sent.
Trait Implementations
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>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for WeightedVariation
impl Send for WeightedVariation
impl Sync for WeightedVariation
impl Unpin for WeightedVariation
impl UnwindSafe for WeightedVariation
Blanket Implementations
Mutably borrows from an owned value. Read more