pub struct FlagDetailConfig { /* private fields */ }
Expand description
Configuration struct to control the type of data returned from the crate::Client::all_flags_detail method. By default, each of the options default to false. However, you can selectively enable them by calling the appropriate functions.
let mut config = FlagDetailConfig::new();
config.client_side_only()
.with_reasons()
.details_only_for_tracked_flags();
Implementations§
source§impl FlagDetailConfig
impl FlagDetailConfig
sourcepub fn new() -> Self
pub fn new() -> Self
Create a FlagDetailConfig with default values.
By default, this config will include al flags and will not include reasons.
sourcepub fn client_side_only(&mut self) -> &mut Self
pub fn client_side_only(&mut self) -> &mut Self
Limit to only flags that are marked for use with the client-side SDK (by default, all flags are included)
sourcepub fn with_reasons(&mut self) -> &mut Self
pub fn with_reasons(&mut self) -> &mut Self
Include evaluation reasons in the state
sourcepub fn details_only_for_tracked_flags(&mut self) -> &mut Self
pub fn details_only_for_tracked_flags(&mut self) -> &mut Self
Omit any metadata that is normally only used for event generation, such as flag versions and evaluation reasons, unless the flag has event tracking or debugging turned on
Trait Implementations§
source§impl Clone for FlagDetailConfig
impl Clone for FlagDetailConfig
source§fn clone(&self) -> FlagDetailConfig
fn clone(&self) -> FlagDetailConfig
Returns a copy 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 Default for FlagDetailConfig
impl Default for FlagDetailConfig
source§fn default() -> FlagDetailConfig
fn default() -> FlagDetailConfig
Returns the “default value” for a type. Read more
impl Copy for FlagDetailConfig
Auto Trait Implementations§
impl Freeze for FlagDetailConfig
impl RefUnwindSafe for FlagDetailConfig
impl Send for FlagDetailConfig
impl Sync for FlagDetailConfig
impl Unpin for FlagDetailConfig
impl UnwindSafe for FlagDetailConfig
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)