pub struct RolloutDecision {
pub percent: f64,
pub key: RolloutKey,
pub bucket: u32,
pub enforced: bool,
}Expand description
The decision recorded on the trace, so an auditor can re-derive which arm a request was in.
Without this a mixed-population receipt log cannot be split back into the enforced and observed arms, and every savings or failure figure computed over it silently blends two different regimes.
Fields§
§percent: f64Configured percent at decision time.
key: RolloutKeyWhich identity was held constant.
bucket: u32The bucket this request landed in.
enforced: boolWhether it enforced.
Trait Implementations§
Source§impl Clone for RolloutDecision
impl Clone for RolloutDecision
Source§fn clone(&self) -> RolloutDecision
fn clone(&self) -> RolloutDecision
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 moreimpl Copy for RolloutDecision
Source§impl Debug for RolloutDecision
impl Debug for RolloutDecision
Source§impl PartialEq for RolloutDecision
impl PartialEq for RolloutDecision
impl StructuralPartialEq for RolloutDecision
Auto Trait Implementations§
impl Freeze for RolloutDecision
impl RefUnwindSafe for RolloutDecision
impl Send for RolloutDecision
impl Sync for RolloutDecision
impl Unpin for RolloutDecision
impl UnsafeUnpin for RolloutDecision
impl UnwindSafe for RolloutDecision
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