Struct launchdarkly_server_sdk::FlagDetailConfig
source · [−]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
Create a FlagDetailConfig with default values.
By default, this config will include al flags and will not include reasons.
Limit to only flags that are marked for use with the client-side SDK (by default, all flags are included)
Include evaluation reasons in the state
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
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for FlagDetailConfig
impl Send for FlagDetailConfig
impl Sync for FlagDetailConfig
impl Unpin for FlagDetailConfig
impl UnwindSafe for FlagDetailConfig
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more