#[non_exhaustive]pub struct EvaluateFeatureOutput { /* private fields */ }
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
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 Debug for EvaluateFeatureOutput
impl Debug for EvaluateFeatureOutput
source§impl PartialEq<EvaluateFeatureOutput> for EvaluateFeatureOutput
impl PartialEq<EvaluateFeatureOutput> for EvaluateFeatureOutput
source§fn eq(&self, other: &EvaluateFeatureOutput) -> bool
fn eq(&self, other: &EvaluateFeatureOutput) -> bool
This method tests for
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>
Returns the request ID, or
None
if the service could not be reached.impl StructuralPartialEq for EvaluateFeatureOutput
Auto Trait Implementations§
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
Mutably borrows from an owned value. Read more