#[non_exhaustive]pub struct ContinuousDeploymentSingleWeightConfig {
pub weight: f32,
pub session_stickiness_config: Option<SessionStickinessConfig>,
}
Expand description
Contains the percentage of traffic to send to a staging distribution.
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.weight: f32
The percentage of traffic to send to a staging distribution, expressed as a decimal number between 0 and .15.
session_stickiness_config: 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.
Implementations§
source§impl ContinuousDeploymentSingleWeightConfig
impl ContinuousDeploymentSingleWeightConfig
sourcepub fn weight(&self) -> f32
pub fn weight(&self) -> 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() -> ContinuousDeploymentSingleWeightConfigBuilder
pub fn builder() -> ContinuousDeploymentSingleWeightConfigBuilder
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
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for ContinuousDeploymentSingleWeightConfig
impl PartialEq for ContinuousDeploymentSingleWeightConfig
source§fn eq(&self, other: &ContinuousDeploymentSingleWeightConfig) -> bool
fn eq(&self, other: &ContinuousDeploymentSingleWeightConfig) -> bool
self
and other
values to be equal, and is used
by ==
.