pub struct RolloutRecord {
pub percent: f64,
pub key: String,
pub bucket: u32,
pub enforced: bool,
}Expand description
to pre-rollout traces and hash-chain compatible.
Fields§
§percent: f64Configured percent at decision time. Recorded because it changes as an operator ramps, and a bound computed over a window spanning a ramp must be able to see that.
key: StringWhich identity was held constant (session / request / tenant).
bucket: u32The bucket this request fell in, within 0..10_000.
enforced: boolWhether this request enforced. The observed arm is not a failure — it is the control.
Trait Implementations§
Source§impl Clone for RolloutRecord
impl Clone for RolloutRecord
Source§fn clone(&self) -> RolloutRecord
fn clone(&self) -> RolloutRecord
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 moreSource§impl Debug for RolloutRecord
impl Debug for RolloutRecord
Source§impl<'de> Deserialize<'de> for RolloutRecord
impl<'de> Deserialize<'de> for RolloutRecord
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RolloutRecord
impl PartialEq for RolloutRecord
Source§impl Serialize for RolloutRecord
impl Serialize for RolloutRecord
impl StructuralPartialEq for RolloutRecord
Auto Trait Implementations§
impl Freeze for RolloutRecord
impl RefUnwindSafe for RolloutRecord
impl Send for RolloutRecord
impl Sync for RolloutRecord
impl Unpin for RolloutRecord
impl UnsafeUnpin for RolloutRecord
impl UnwindSafe for RolloutRecord
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