pub struct EvaluationDetails<T> {
pub flag_key: String,
pub value: T,
pub reason: Option<EvaluationReason>,
pub variant: Option<String>,
pub flag_metadata: FlagMetadata,
}
Expand description
The result of the flag evaluation process, and made available in the detailed flag resolution functions.
Fields§
§flag_key: String
The flag key argument passed to the detailed flag evaluation method.
value: T
The value of evaluation result.
reason: Option<EvaluationReason>
The optional returned by the configured provider.
variant: Option<String>
The optional variant returned by the configured provider.
flag_metadata: FlagMetadata
The optional flag metadata returned by the configured provider. If the provider returns nothing, it is set to the default value.
Implementations§
Source§impl<T> EvaluationDetails<T>
impl<T> EvaluationDetails<T>
Sourcepub fn into_value(self) -> EvaluationDetails<Value>
pub fn into_value(self) -> EvaluationDetails<Value>
Convert the evaluation result of type T
to Value
.
Trait Implementations§
Source§impl<T: Clone> Clone for EvaluationDetails<T>
impl<T: Clone> Clone for EvaluationDetails<T>
Source§fn clone(&self) -> EvaluationDetails<T>
fn clone(&self) -> EvaluationDetails<T>
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<T: Debug> Debug for EvaluationDetails<T>
impl<T: Debug> Debug for EvaluationDetails<T>
Source§impl<T: Default> Default for EvaluationDetails<T>
impl<T: Default> Default for EvaluationDetails<T>
Source§fn default() -> EvaluationDetails<T>
fn default() -> EvaluationDetails<T>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<T> Freeze for EvaluationDetails<T>where
T: Freeze,
impl<T> RefUnwindSafe for EvaluationDetails<T>where
T: RefUnwindSafe,
impl<T> Send for EvaluationDetails<T>where
T: Send,
impl<T> Sync for EvaluationDetails<T>where
T: Sync,
impl<T> Unpin for EvaluationDetails<T>where
T: Unpin,
impl<T> UnwindSafe for EvaluationDetails<T>where
T: UnwindSafe,
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