Struct aws_sdk_evidently::types::SegmentOverride
source · #[non_exhaustive]pub struct SegmentOverride {
pub segment: String,
pub evaluation_order: i64,
pub weights: HashMap<String, i64>,
}Expand description
This structure specifies a segment that you have already created, and defines the traffic split for that segment to be used in a launch.
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.segment: StringThe ARN of the segment to use.
evaluation_order: i64A number indicating the order to use to evaluate segment overrides, if there are more than one. Segment overrides with lower numbers are evaluated first.
weights: HashMap<String, i64>The traffic allocation percentages among the feature variations to assign to this segment. This is a set of key-value pairs. The keys are variation names. The values represent the amount of traffic to allocate to that variation for this segment. This is expressed in thousandths of a percent, so a weight of 50000 represents 50% of traffic.
Implementations§
source§impl SegmentOverride
impl SegmentOverride
sourcepub fn evaluation_order(&self) -> i64
pub fn evaluation_order(&self) -> i64
A number indicating the order to use to evaluate segment overrides, if there are more than one. Segment overrides with lower numbers are evaluated first.
sourcepub fn weights(&self) -> &HashMap<String, i64>
pub fn weights(&self) -> &HashMap<String, i64>
The traffic allocation percentages among the feature variations to assign to this segment. This is a set of key-value pairs. The keys are variation names. The values represent the amount of traffic to allocate to that variation for this segment. This is expressed in thousandths of a percent, so a weight of 50000 represents 50% of traffic.
source§impl SegmentOverride
impl SegmentOverride
sourcepub fn builder() -> SegmentOverrideBuilder
pub fn builder() -> SegmentOverrideBuilder
Creates a new builder-style object to manufacture SegmentOverride.
Trait Implementations§
source§impl Clone for SegmentOverride
impl Clone for SegmentOverride
source§fn clone(&self) -> SegmentOverride
fn clone(&self) -> SegmentOverride
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for SegmentOverride
impl Debug for SegmentOverride
source§impl PartialEq for SegmentOverride
impl PartialEq for SegmentOverride
source§fn eq(&self, other: &SegmentOverride) -> bool
fn eq(&self, other: &SegmentOverride) -> bool
self and other values to be equal, and is used
by ==.