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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more