pub enum FlagRule {
Boolean(bool),
UserList(Vec<String>),
Percentage(u8),
}Expand description
A feature flag rule.
Variants§
Boolean(bool)
Always on or off.
UserList(Vec<String>)
On for specific user IDs.
Percentage(u8)
On for a percentage of users (0-100).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FlagRule
impl RefUnwindSafe for FlagRule
impl Send for FlagRule
impl Sync for FlagRule
impl Unpin for FlagRule
impl UnsafeUnpin for FlagRule
impl UnwindSafe for FlagRule
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