pub struct FeatureFlagCollection { /* private fields */ }Implementations§
Source§impl FeatureFlagCollection
impl FeatureFlagCollection
pub fn iter(&self) -> impl Iterator<Item = (&str, &FeatureFlag)>
pub fn get(&self, key: &str) -> Option<&FeatureFlag>
pub fn get_str_flag(&self, key: &str) -> Option<&str>
pub fn get_bool_flag(&self, key: &str) -> Option<bool>
pub fn get_int_flag(&self, key: &str) -> Option<i64>
pub fn get_json_flag(&self, key: &str) -> Option<&Value>
pub fn get_typed_json_flag<T>(&self, key: &str) -> Option<T>where
T: DeserializeOwned,
Trait Implementations§
Source§impl Clone for FeatureFlagCollection
impl Clone for FeatureFlagCollection
Source§fn clone(&self) -> FeatureFlagCollection
fn clone(&self) -> FeatureFlagCollection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FeatureFlagCollection
impl Debug for FeatureFlagCollection
Auto Trait Implementations§
impl Freeze for FeatureFlagCollection
impl RefUnwindSafe for FeatureFlagCollection
impl Send for FeatureFlagCollection
impl Sync for FeatureFlagCollection
impl Unpin for FeatureFlagCollection
impl UnsafeUnpin for FeatureFlagCollection
impl UnwindSafe for FeatureFlagCollection
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