Struct aws_sdk_evidently::types::EvaluationRequest
source · #[non_exhaustive]pub struct EvaluationRequest {
pub feature: String,
pub entity_id: String,
pub evaluation_context: Option<String>,
}
Expand description
This structure assigns a feature variation 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.feature: String
The name of the feature being evaluated.
entity_id: String
An internal ID that represents a unique user session of the application. This entityID
is checked against any override rules assigned for this feature.
evaluation_context: Option<String>
A JSON block of attributes that you can optionally pass in. This JSON block is included in the evaluation events sent to Evidently from the user session.
Implementations§
source§impl EvaluationRequest
impl EvaluationRequest
sourcepub fn entity_id(&self) -> &str
pub fn entity_id(&self) -> &str
An internal ID that represents a unique user session of the application. This entityID
is checked against any override rules assigned for this feature.
sourcepub fn evaluation_context(&self) -> Option<&str>
pub fn evaluation_context(&self) -> Option<&str>
A JSON block of attributes that you can optionally pass in. This JSON block is included in the evaluation events sent to Evidently from the user session.
source§impl EvaluationRequest
impl EvaluationRequest
sourcepub fn builder() -> EvaluationRequestBuilder
pub fn builder() -> EvaluationRequestBuilder
Creates a new builder-style object to manufacture EvaluationRequest
.
Trait Implementations§
source§impl Clone for EvaluationRequest
impl Clone for EvaluationRequest
source§fn clone(&self) -> EvaluationRequest
fn clone(&self) -> EvaluationRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EvaluationRequest
impl Debug for EvaluationRequest
source§impl PartialEq for EvaluationRequest
impl PartialEq for EvaluationRequest
source§fn eq(&self, other: &EvaluationRequest) -> bool
fn eq(&self, other: &EvaluationRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for EvaluationRequest
Auto Trait Implementations§
impl Freeze for EvaluationRequest
impl RefUnwindSafe for EvaluationRequest
impl Send for EvaluationRequest
impl Sync for EvaluationRequest
impl Unpin for EvaluationRequest
impl UnwindSafe for EvaluationRequest
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