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
sourceimpl 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
sourceimpl Clone for FlagDetailConfig
impl Clone for FlagDetailConfig
sourcefn clone(&self) -> FlagDetailConfig
fn clone(&self) -> FlagDetailConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Default for FlagDetailConfig
impl Default for FlagDetailConfig
sourcefn default() -> FlagDetailConfig
fn default() -> FlagDetailConfig
Returns the “default value” for a type. Read more
impl Copy for FlagDetailConfig
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more