pub struct FlagOption {
pub idx: u8,
pub name: String,
pub percentage: u8,
}Expand description
Option for the feature flag.
Fields§
§idx: u8Unique index for this flag option.
name: StringName of this feature flag option.
percentage: u8Percentage of users that will have this flag turned on.
Trait Implementations§
Source§impl Clone for FlagOption
impl Clone for FlagOption
Source§fn clone(&self) -> FlagOption
fn clone(&self) -> FlagOption
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 FlagOption
impl Debug for FlagOption
Source§impl<'de> Deserialize<'de> for FlagOption
impl<'de> Deserialize<'de> for FlagOption
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 FlagOption
impl RefUnwindSafe for FlagOption
impl Send for FlagOption
impl Sync for FlagOption
impl Unpin for FlagOption
impl UnwindSafe for FlagOption
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