#[non_exhaustive]pub struct ScheduledSplitConfigBuilder { /* private fields */ }
Expand description
A builder for ScheduledSplitConfig
.
Implementations§
source§impl ScheduledSplitConfigBuilder
impl ScheduledSplitConfigBuilder
sourcepub fn start_time(self, input: DateTime) -> Self
pub fn start_time(self, input: DateTime) -> Self
The date and time that this step of the launch starts.
This field is required.sourcepub fn set_start_time(self, input: Option<DateTime>) -> Self
pub fn set_start_time(self, input: Option<DateTime>) -> Self
The date and time that this step of the launch starts.
sourcepub fn get_start_time(&self) -> &Option<DateTime>
pub fn get_start_time(&self) -> &Option<DateTime>
The date and time that this step of the launch starts.
sourcepub fn group_weights(self, k: impl Into<String>, v: i64) -> Self
pub fn group_weights(self, k: impl Into<String>, v: i64) -> Self
Adds a key-value pair to group_weights
.
To override the contents of this collection use set_group_weights
.
The traffic allocation percentages among the feature variations during one step of a launch. This is a set of key-value pairs. The keys are variation names. The values represent the percentage of traffic to allocate to that variation during this step.
The values is expressed in thousandths of a percent, so assigning a weight of 50000 assigns 50% of traffic to that variation.
If the sum of the weights for all the variations in a segment override does not add up to 100,000, then the remaining traffic that matches this segment is not assigned by this segment override, and instead moves on to the next segment override or the default traffic split.
sourcepub fn set_group_weights(self, input: Option<HashMap<String, i64>>) -> Self
pub fn set_group_weights(self, input: Option<HashMap<String, i64>>) -> Self
The traffic allocation percentages among the feature variations during one step of a launch. This is a set of key-value pairs. The keys are variation names. The values represent the percentage of traffic to allocate to that variation during this step.
The values is expressed in thousandths of a percent, so assigning a weight of 50000 assigns 50% of traffic to that variation.
If the sum of the weights for all the variations in a segment override does not add up to 100,000, then the remaining traffic that matches this segment is not assigned by this segment override, and instead moves on to the next segment override or the default traffic split.
sourcepub fn get_group_weights(&self) -> &Option<HashMap<String, i64>>
pub fn get_group_weights(&self) -> &Option<HashMap<String, i64>>
The traffic allocation percentages among the feature variations during one step of a launch. This is a set of key-value pairs. The keys are variation names. The values represent the percentage of traffic to allocate to that variation during this step.
The values is expressed in thousandths of a percent, so assigning a weight of 50000 assigns 50% of traffic to that variation.
If the sum of the weights for all the variations in a segment override does not add up to 100,000, then the remaining traffic that matches this segment is not assigned by this segment override, and instead moves on to the next segment override or the default traffic split.
sourcepub fn segment_overrides(self, input: SegmentOverride) -> Self
pub fn segment_overrides(self, input: SegmentOverride) -> Self
Appends an item to segment_overrides
.
To override the contents of this collection use set_segment_overrides
.
Use this parameter to specify different traffic splits for one or more audience segments. A segment is a portion of your audience that share one or more characteristics. Examples could be Chrome browser users, users in Europe, or Firefox browser users in Europe who also fit other criteria that your application collects, such as age.
This parameter is an array of up to six segment override objects. Each of these objects specifies a segment that you have already created, and defines the traffic split for that segment.
sourcepub fn set_segment_overrides(self, input: Option<Vec<SegmentOverride>>) -> Self
pub fn set_segment_overrides(self, input: Option<Vec<SegmentOverride>>) -> Self
Use this parameter to specify different traffic splits for one or more audience segments. A segment is a portion of your audience that share one or more characteristics. Examples could be Chrome browser users, users in Europe, or Firefox browser users in Europe who also fit other criteria that your application collects, such as age.
This parameter is an array of up to six segment override objects. Each of these objects specifies a segment that you have already created, and defines the traffic split for that segment.
sourcepub fn get_segment_overrides(&self) -> &Option<Vec<SegmentOverride>>
pub fn get_segment_overrides(&self) -> &Option<Vec<SegmentOverride>>
Use this parameter to specify different traffic splits for one or more audience segments. A segment is a portion of your audience that share one or more characteristics. Examples could be Chrome browser users, users in Europe, or Firefox browser users in Europe who also fit other criteria that your application collects, such as age.
This parameter is an array of up to six segment override objects. Each of these objects specifies a segment that you have already created, and defines the traffic split for that segment.
sourcepub fn build(self) -> Result<ScheduledSplitConfig, BuildError>
pub fn build(self) -> Result<ScheduledSplitConfig, BuildError>
Consumes the builder and constructs a ScheduledSplitConfig
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ScheduledSplitConfigBuilder
impl Clone for ScheduledSplitConfigBuilder
source§fn clone(&self) -> ScheduledSplitConfigBuilder
fn clone(&self) -> ScheduledSplitConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ScheduledSplitConfigBuilder
impl Debug for ScheduledSplitConfigBuilder
source§impl Default for ScheduledSplitConfigBuilder
impl Default for ScheduledSplitConfigBuilder
source§fn default() -> ScheduledSplitConfigBuilder
fn default() -> ScheduledSplitConfigBuilder
source§impl PartialEq for ScheduledSplitConfigBuilder
impl PartialEq for ScheduledSplitConfigBuilder
source§fn eq(&self, other: &ScheduledSplitConfigBuilder) -> bool
fn eq(&self, other: &ScheduledSplitConfigBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ScheduledSplitConfigBuilder
Auto Trait Implementations§
impl Freeze for ScheduledSplitConfigBuilder
impl RefUnwindSafe for ScheduledSplitConfigBuilder
impl Send for ScheduledSplitConfigBuilder
impl Sync for ScheduledSplitConfigBuilder
impl Unpin for ScheduledSplitConfigBuilder
impl UnwindSafe for ScheduledSplitConfigBuilder
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