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 ==.impl StructuralPartialEq for SegmentOverride
Auto Trait Implementations§
impl Freeze for SegmentOverride
impl RefUnwindSafe for SegmentOverride
impl Send for SegmentOverride
impl Sync for SegmentOverride
impl Unpin for SegmentOverride
impl UnwindSafe for SegmentOverride
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