Struct aws_sdk_appmesh::model::WeightedTarget
source · [−]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.
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.virtual_node: Option<String>
The virtual node to associate with the weighted target.
weight: i32
The relative weight of the weighted target.
Implementations
Creates a new builder-style object to manufacture WeightedTarget
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more