Struct aws_sdk_evidently::types::builders::EvaluationRequestBuilder
source · #[non_exhaustive]pub struct EvaluationRequestBuilder { /* private fields */ }
Expand description
A builder for EvaluationRequest
.
Implementations§
source§impl EvaluationRequestBuilder
impl EvaluationRequestBuilder
sourcepub fn feature(self, input: impl Into<String>) -> Self
pub fn feature(self, input: impl Into<String>) -> Self
The name of the feature being evaluated.
This field is required.sourcepub fn set_feature(self, input: Option<String>) -> Self
pub fn set_feature(self, input: Option<String>) -> Self
The name of the feature being evaluated.
sourcepub fn get_feature(&self) -> &Option<String>
pub fn get_feature(&self) -> &Option<String>
The name of the feature being evaluated.
sourcepub fn entity_id(self, input: impl Into<String>) -> Self
pub fn entity_id(self, input: impl Into<String>) -> Self
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 set_entity_id(self, input: Option<String>) -> Self
pub fn set_entity_id(self, input: Option<String>) -> Self
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 get_entity_id(&self) -> &Option<String>
pub fn get_entity_id(&self) -> &Option<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.
sourcepub fn evaluation_context(self, input: impl Into<String>) -> Self
pub fn evaluation_context(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_evaluation_context(self, input: Option<String>) -> Self
pub fn set_evaluation_context(self, input: Option<String>) -> Self
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.
sourcepub fn get_evaluation_context(&self) -> &Option<String>
pub fn get_evaluation_context(&self) -> &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.
sourcepub fn build(self) -> Result<EvaluationRequest, BuildError>
pub fn build(self) -> Result<EvaluationRequest, BuildError>
Consumes the builder and constructs a EvaluationRequest
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for EvaluationRequestBuilder
impl Clone for EvaluationRequestBuilder
source§fn clone(&self) -> EvaluationRequestBuilder
fn clone(&self) -> EvaluationRequestBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EvaluationRequestBuilder
impl Debug for EvaluationRequestBuilder
source§impl Default for EvaluationRequestBuilder
impl Default for EvaluationRequestBuilder
source§fn default() -> EvaluationRequestBuilder
fn default() -> EvaluationRequestBuilder
source§impl PartialEq for EvaluationRequestBuilder
impl PartialEq for EvaluationRequestBuilder
source§fn eq(&self, other: &EvaluationRequestBuilder) -> bool
fn eq(&self, other: &EvaluationRequestBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for EvaluationRequestBuilder
Auto Trait Implementations§
impl Freeze for EvaluationRequestBuilder
impl RefUnwindSafe for EvaluationRequestBuilder
impl Send for EvaluationRequestBuilder
impl Sync for EvaluationRequestBuilder
impl Unpin for EvaluationRequestBuilder
impl UnwindSafe for EvaluationRequestBuilder
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