pub struct Flag {
pub idx: u8,
pub name: String,
pub options: Vec<FlagOption>,
}Expand description
Feature flag definition.
Note: Flags use cookies for non-logged in users, and use fields set on their token after they’re logged in so that users have the ability to configure their preference if they have one.
Fields§
§idx: u8Unique index for the feature flag.
name: StringName of the feature flag.
options: Vec<FlagOption>Options for this flag. Percentage must total 100.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Flag
impl<'de> Deserialize<'de> for Flag
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 Flag
impl RefUnwindSafe for Flag
impl Send for Flag
impl Sync for Flag
impl Unpin for Flag
impl UnwindSafe for Flag
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