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 ==
.impl StructuralPartialEq for EvaluationResult
Auto Trait Implementations§
impl Freeze for EvaluationResult
impl RefUnwindSafe for EvaluationResult
impl Send for EvaluationResult
impl Sync for EvaluationResult
impl Unpin for EvaluationResult
impl UnwindSafe for EvaluationResult
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