Struct aws_sdk_appmesh::types::WeightedTarget
source · #[non_exhaustive]pub struct WeightedTarget { /* private fields */ }
Expand description
An object that represents a target and its relative weight. Traffic is distributed across targets according to their relative weight. For example, a weighted target with a relative weight of 50 receives five times as much traffic as one with a relative weight of 10. The total weight for all targets combined must be less than or equal to 100.
Implementations§
source§impl WeightedTarget
impl WeightedTarget
sourcepub fn builder() -> WeightedTargetBuilder
pub fn builder() -> WeightedTargetBuilder
Creates a new builder-style object to manufacture WeightedTarget
.
Trait Implementations§
source§impl Clone for WeightedTarget
impl Clone for WeightedTarget
source§fn clone(&self) -> WeightedTarget
fn clone(&self) -> WeightedTarget
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 Debug for WeightedTarget
impl Debug for WeightedTarget
source§impl PartialEq<WeightedTarget> for WeightedTarget
impl PartialEq<WeightedTarget> for WeightedTarget
source§fn eq(&self, other: &WeightedTarget) -> bool
fn eq(&self, other: &WeightedTarget) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for WeightedTarget
Auto Trait Implementations§
impl RefUnwindSafe for WeightedTarget
impl Send for WeightedTarget
impl Sync for WeightedTarget
impl Unpin for WeightedTarget
impl UnwindSafe for WeightedTarget
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