pub struct FeatureFlagCondition {
pub properties: Vec<Property>,
pub rollout_percentage: Option<f64>,
pub variant: Option<String>,
}Expand description
A single condition group within a feature flag’s targeting rules.
All properties within a condition must match (AND logic), and the user must fall within the rollout percentage to be included.
Fields§
§properties: Vec<Property>Property filters that must all match (AND logic)
rollout_percentage: Option<f64>Percentage of matching users who should see this flag (0-100)
variant: Option<String>Specific variant to serve for this condition (for variant overrides)
Trait Implementations§
Source§impl Clone for FeatureFlagCondition
impl Clone for FeatureFlagCondition
Source§fn clone(&self) -> FeatureFlagCondition
fn clone(&self) -> FeatureFlagCondition
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 FeatureFlagCondition
impl Debug for FeatureFlagCondition
Source§impl<'de> Deserialize<'de> for FeatureFlagCondition
impl<'de> Deserialize<'de> for FeatureFlagCondition
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 FeatureFlagCondition
impl RefUnwindSafe for FeatureFlagCondition
impl Send for FeatureFlagCondition
impl Sync for FeatureFlagCondition
impl Unpin for FeatureFlagCondition
impl UnwindSafe for FeatureFlagCondition
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