pub struct TrafficRouting {
pub new_version_percentage: u32,
pub min_requests: u32,
pub error_threshold: f32,
}Expand description
Traffic routing configuration for gradual migration.
Fields§
§new_version_percentage: u32Percentage of traffic to new version (0-100).
min_requests: u32Minimum requests before evaluating.
error_threshold: f32Error rate threshold for rollback (0.0-1.0).
Trait Implementations§
Source§impl Clone for TrafficRouting
impl Clone for TrafficRouting
Source§fn clone(&self) -> TrafficRouting
fn clone(&self) -> TrafficRouting
Returns a duplicate 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 TrafficRouting
impl Debug for TrafficRouting
Auto Trait Implementations§
impl Freeze for TrafficRouting
impl RefUnwindSafe for TrafficRouting
impl Send for TrafficRouting
impl Sync for TrafficRouting
impl Unpin for TrafficRouting
impl UnsafeUnpin for TrafficRouting
impl UnwindSafe for TrafficRouting
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