pub struct WeightedMapping {
pub subject: String,
pub weight: u8,
pub cluster: String,
}Expand description
One weighted target in a subject mapping (for traffic splitting / canaries).
Fields§
§subject: StringDestination subject.
weight: u8Weight 0–100; the share of traffic routed to subject.
cluster: StringRestrict this mapping to a named cluster (empty = all clusters).
Trait Implementations§
Source§impl Clone for WeightedMapping
impl Clone for WeightedMapping
Source§fn clone(&self) -> WeightedMapping
fn clone(&self) -> WeightedMapping
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WeightedMapping
impl RefUnwindSafe for WeightedMapping
impl Send for WeightedMapping
impl Sync for WeightedMapping
impl Unpin for WeightedMapping
impl UnsafeUnpin for WeightedMapping
impl UnwindSafe for WeightedMapping
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