pub enum Outcome {
Variant {
variant: Variant,
},
Rollout {
variants: Vec<RolloutEntry>,
},
}Expand description
What a matching rule produces.
Variants§
Variant
Use a single variant unconditionally.
Rollout
Bucket the subject’s id into one of these variants. Weights must sum to 100. Bucketing is sticky (SHA-256 mod 100).
Fields
§
variants: Vec<RolloutEntry>(variant, weight) pairs. Weights are percentages and must sum to 100.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Outcome
impl<'de> Deserialize<'de> for Outcome
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
Auto Trait Implementations§
impl Freeze for Outcome
impl RefUnwindSafe for Outcome
impl Send for Outcome
impl Sync for Outcome
impl Unpin for Outcome
impl UnsafeUnpin for Outcome
impl UnwindSafe for Outcome
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