#[non_exhaustive]pub struct ContinuousDeploymentSingleWeightConfig { /* private fields */ }
Expand description
Contains the percentage of traffic to send to a staging distribution.
Implementations§
source§impl ContinuousDeploymentSingleWeightConfig
impl ContinuousDeploymentSingleWeightConfig
sourcepub fn weight(&self) -> Option<f32>
pub fn weight(&self) -> Option<f32>
The percentage of traffic to send to a staging distribution, expressed as a decimal number between 0 and .15.
sourcepub fn session_stickiness_config(&self) -> Option<&SessionStickinessConfig>
pub fn session_stickiness_config(&self) -> Option<&SessionStickinessConfig>
Session stickiness provides the ability to define multiple requests from a single viewer as a single session. This prevents the potentially inconsistent experience of sending some of a given user's requests to your staging distribution, while others are sent to your primary distribution. Define the session duration using TTL values.
source§impl ContinuousDeploymentSingleWeightConfig
impl ContinuousDeploymentSingleWeightConfig
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ContinuousDeploymentSingleWeightConfig
.
Trait Implementations§
source§impl Clone for ContinuousDeploymentSingleWeightConfig
impl Clone for ContinuousDeploymentSingleWeightConfig
source§fn clone(&self) -> ContinuousDeploymentSingleWeightConfig
fn clone(&self) -> ContinuousDeploymentSingleWeightConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl PartialEq<ContinuousDeploymentSingleWeightConfig> for ContinuousDeploymentSingleWeightConfig
impl PartialEq<ContinuousDeploymentSingleWeightConfig> for ContinuousDeploymentSingleWeightConfig
source§fn eq(&self, other: &ContinuousDeploymentSingleWeightConfig) -> bool
fn eq(&self, other: &ContinuousDeploymentSingleWeightConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.