#[non_exhaustive]pub struct AliasRoutingConfigurationBuilder { /* private fields */ }Expand description
A builder for AliasRoutingConfiguration.
Implementations§
source§impl AliasRoutingConfigurationBuilder
 
impl AliasRoutingConfigurationBuilder
sourcepub fn additional_version_weights(self, k: impl Into<String>, v: f64) -> Self
 
pub fn additional_version_weights(self, k: impl Into<String>, v: f64) -> Self
Adds a key-value pair to additional_version_weights.
To override the contents of this collection use set_additional_version_weights.
The second version, and the percentage of traffic that's routed to it.
sourcepub fn set_additional_version_weights(
    self,
    input: Option<HashMap<String, f64>>,
) -> Self
 
pub fn set_additional_version_weights( self, input: Option<HashMap<String, f64>>, ) -> Self
The second version, and the percentage of traffic that's routed to it.
sourcepub fn get_additional_version_weights(&self) -> &Option<HashMap<String, f64>>
 
pub fn get_additional_version_weights(&self) -> &Option<HashMap<String, f64>>
The second version, and the percentage of traffic that's routed to it.
sourcepub fn build(self) -> AliasRoutingConfiguration
 
pub fn build(self) -> AliasRoutingConfiguration
Consumes the builder and constructs a AliasRoutingConfiguration.
Trait Implementations§
source§impl Clone for AliasRoutingConfigurationBuilder
 
impl Clone for AliasRoutingConfigurationBuilder
source§fn clone(&self) -> AliasRoutingConfigurationBuilder
 
fn clone(&self) -> AliasRoutingConfigurationBuilder
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 Default for AliasRoutingConfigurationBuilder
 
impl Default for AliasRoutingConfigurationBuilder
source§fn default() -> AliasRoutingConfigurationBuilder
 
fn default() -> AliasRoutingConfigurationBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for AliasRoutingConfigurationBuilder
 
impl PartialEq for AliasRoutingConfigurationBuilder
source§fn eq(&self, other: &AliasRoutingConfigurationBuilder) -> bool
 
fn eq(&self, other: &AliasRoutingConfigurationBuilder) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AliasRoutingConfigurationBuilder
Auto Trait Implementations§
impl Freeze for AliasRoutingConfigurationBuilder
impl RefUnwindSafe for AliasRoutingConfigurationBuilder
impl Send for AliasRoutingConfigurationBuilder
impl Sync for AliasRoutingConfigurationBuilder
impl Unpin for AliasRoutingConfigurationBuilder
impl UnwindSafe for AliasRoutingConfigurationBuilder
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
Mutably borrows from an owned value. Read more
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>
Converts 
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>
Converts 
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 moreCreates a shared type from an unshared type.