Struct aws_sdk_evidently::types::EvaluationResult
source · #[non_exhaustive]pub struct EvaluationResult {
pub project: Option<String>,
pub feature: String,
pub variation: Option<String>,
pub value: Option<VariableValue>,
pub entity_id: String,
pub reason: Option<String>,
pub details: Option<String>,
}
Expand description
This structure displays the results of one feature evaluation assignment to one user session.
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.project: Option<String>
The name or ARN of the project that contains the feature being evaluated.
feature: String
The name of the feature being evaluated.
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.
entity_id: String
An internal ID that represents a unique user session of the application.
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; or EXPERIMENT_RULE_MATCH
, if the user session was enrolled in an experiment.
details: Option<String>
If this user was assigned to a launch or experiment, this field lists the launch or experiment name.
Implementations§
source§impl EvaluationResult
impl EvaluationResult
sourcepub fn project(&self) -> Option<&str>
pub fn project(&self) -> Option<&str>
The name or ARN of the project that contains the feature being evaluated.
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 entity_id(&self) -> &str
pub fn entity_id(&self) -> &str
An internal ID that represents a unique user session of the application.
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; or EXPERIMENT_RULE_MATCH
, if the user session was enrolled in an experiment.
source§impl EvaluationResult
impl EvaluationResult
sourcepub fn builder() -> EvaluationResultBuilder
pub fn builder() -> EvaluationResultBuilder
Creates a new builder-style object to manufacture EvaluationResult
.
Trait Implementations§
source§impl Clone for EvaluationResult
impl Clone for EvaluationResult
source§fn clone(&self) -> EvaluationResult
fn clone(&self) -> EvaluationResult
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EvaluationResult
impl Debug for EvaluationResult
source§impl PartialEq for EvaluationResult
impl PartialEq for EvaluationResult
source§fn eq(&self, other: &EvaluationResult) -> bool
fn eq(&self, other: &EvaluationResult) -> bool
self
and other
values to be equal, and is used
by ==
.