#[non_exhaustive]pub struct EvaluateFeatureInput {
pub project: Option<String>,
pub feature: Option<String>,
pub entity_id: Option<String>,
pub evaluation_context: Option<String>,
}
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 this feature.
feature: Option<String>
The name of the feature being evaluated.
entity_id: Option<String>
An internal ID that represents a unique user of the application. This entityID
is checked against any override rules assigned for this feature.
evaluation_context: Option<String>
A JSON object of attributes that you can optionally pass in as part of the evaluation event sent to Evidently from the user session. Evidently can use this value to match user sessions with defined audience segments. For more information, see Use segments to focus your audience.
If you include this parameter, the value must be a JSON object. A JSON array is not supported.
Implementations§
source§impl EvaluateFeatureInput
impl EvaluateFeatureInput
sourcepub fn project(&self) -> Option<&str>
pub fn project(&self) -> Option<&str>
The name or ARN of the project that contains this feature.
sourcepub fn entity_id(&self) -> Option<&str>
pub fn entity_id(&self) -> Option<&str>
An internal ID that represents a unique user 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 object of attributes that you can optionally pass in as part of the evaluation event sent to Evidently from the user session. Evidently can use this value to match user sessions with defined audience segments. For more information, see Use segments to focus your audience.
If you include this parameter, the value must be a JSON object. A JSON array is not supported.
source§impl EvaluateFeatureInput
impl EvaluateFeatureInput
sourcepub fn builder() -> EvaluateFeatureInputBuilder
pub fn builder() -> EvaluateFeatureInputBuilder
Creates a new builder-style object to manufacture EvaluateFeatureInput
.
Trait Implementations§
source§impl Clone for EvaluateFeatureInput
impl Clone for EvaluateFeatureInput
source§fn clone(&self) -> EvaluateFeatureInput
fn clone(&self) -> EvaluateFeatureInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EvaluateFeatureInput
impl Debug for EvaluateFeatureInput
source§impl PartialEq for EvaluateFeatureInput
impl PartialEq for EvaluateFeatureInput
source§fn eq(&self, other: &EvaluateFeatureInput) -> bool
fn eq(&self, other: &EvaluateFeatureInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for EvaluateFeatureInput
Auto Trait Implementations§
impl Freeze for EvaluateFeatureInput
impl RefUnwindSafe for EvaluateFeatureInput
impl Send for EvaluateFeatureInput
impl Sync for EvaluateFeatureInput
impl Unpin for EvaluateFeatureInput
impl UnwindSafe for EvaluateFeatureInput
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