#[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.