#[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 0.15. For example, a value of 0.10 means 10% of traffic is sent to the staging distribution.
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 0.15. For example, a value of 0.10 means 10% of traffic is sent to the staging distribution.
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 ==
.impl StructuralPartialEq for ContinuousDeploymentSingleWeightConfig
Auto Trait Implementations§
impl Freeze for ContinuousDeploymentSingleWeightConfig
impl RefUnwindSafe for ContinuousDeploymentSingleWeightConfig
impl Send for ContinuousDeploymentSingleWeightConfig
impl Sync for ContinuousDeploymentSingleWeightConfig
impl Unpin for ContinuousDeploymentSingleWeightConfig
impl UnwindSafe for ContinuousDeploymentSingleWeightConfig
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