#[non_exhaustive]pub struct EvaluateFeatureOutput {
pub variation: Option<String>,
pub value: Option<VariableValue>,
pub reason: Option<String>,
pub details: Option<String>,
/* private fields */
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.variation: Option<String>
The name of the variation that was served to the user session.
value: Option<VariableValue>
The value assigned to this variation to differentiate it from the other variations of this feature.
reason: Option<String>
Specifies the reason that the user session was assigned this variation. Possible values include DEFAULT
, meaning the user was served the default variation; LAUNCH_RULE_MATCH
, if the user session was enrolled in a launch; EXPERIMENT_RULE_MATCH
, if the user session was enrolled in an experiment; or ENTITY_OVERRIDES_MATCH
, if the user's entityId
matches an override rule.
details: Option<String>
If this user was assigned to a launch or experiment, this field lists the launch or experiment name.
Implementations§
source§impl EvaluateFeatureOutput
impl EvaluateFeatureOutput
sourcepub fn variation(&self) -> Option<&str>
pub fn variation(&self) -> Option<&str>
The name of the variation that was served to the user session.
sourcepub fn value(&self) -> Option<&VariableValue>
pub fn value(&self) -> Option<&VariableValue>
The value assigned to this variation to differentiate it from the other variations of this feature.
sourcepub fn reason(&self) -> Option<&str>
pub fn reason(&self) -> Option<&str>
Specifies the reason that the user session was assigned this variation. Possible values include DEFAULT
, meaning the user was served the default variation; LAUNCH_RULE_MATCH
, if the user session was enrolled in a launch; EXPERIMENT_RULE_MATCH
, if the user session was enrolled in an experiment; or ENTITY_OVERRIDES_MATCH
, if the user's entityId
matches an override rule.
source§impl EvaluateFeatureOutput
impl EvaluateFeatureOutput
sourcepub fn builder() -> EvaluateFeatureOutputBuilder
pub fn builder() -> EvaluateFeatureOutputBuilder
Creates a new builder-style object to manufacture EvaluateFeatureOutput
.
Trait Implementations§
source§impl Clone for EvaluateFeatureOutput
impl Clone for EvaluateFeatureOutput
source§fn clone(&self) -> EvaluateFeatureOutput
fn clone(&self) -> EvaluateFeatureOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EvaluateFeatureOutput
impl Debug for EvaluateFeatureOutput
source§impl PartialEq for EvaluateFeatureOutput
impl PartialEq for EvaluateFeatureOutput
source§fn eq(&self, other: &EvaluateFeatureOutput) -> bool
fn eq(&self, other: &EvaluateFeatureOutput) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl RequestId for EvaluateFeatureOutput
impl RequestId for EvaluateFeatureOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.impl StructuralPartialEq for EvaluateFeatureOutput
Auto Trait Implementations§
impl Freeze for EvaluateFeatureOutput
impl RefUnwindSafe for EvaluateFeatureOutput
impl Send for EvaluateFeatureOutput
impl Sync for EvaluateFeatureOutput
impl Unpin for EvaluateFeatureOutput
impl UnwindSafe for EvaluateFeatureOutput
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
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>
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>
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