Struct aws_sdk_evidently::types::TreatmentConfig
source · #[non_exhaustive]pub struct TreatmentConfig {
pub name: String,
pub description: Option<String>,
pub feature: String,
pub variation: String,
}Expand description
A structure that defines one treatment in an experiment. A treatment is a variation of the feature that you are including in the experiment.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringA name for this treatment.
description: Option<String>A description for this treatment.
feature: StringThe feature that this experiment is testing.
variation: StringThe name of the variation to use as this treatment in the experiment.
Implementations§
source§impl TreatmentConfig
impl TreatmentConfig
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A description for this treatment.
source§impl TreatmentConfig
impl TreatmentConfig
sourcepub fn builder() -> TreatmentConfigBuilder
pub fn builder() -> TreatmentConfigBuilder
Creates a new builder-style object to manufacture TreatmentConfig.
Trait Implementations§
source§impl Clone for TreatmentConfig
impl Clone for TreatmentConfig
source§fn clone(&self) -> TreatmentConfig
fn clone(&self) -> TreatmentConfig
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 TreatmentConfig
impl Debug for TreatmentConfig
source§impl PartialEq for TreatmentConfig
impl PartialEq for TreatmentConfig
source§fn eq(&self, other: &TreatmentConfig) -> bool
fn eq(&self, other: &TreatmentConfig) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for TreatmentConfig
Auto Trait Implementations§
impl RefUnwindSafe for TreatmentConfig
impl Send for TreatmentConfig
impl Sync for TreatmentConfig
impl Unpin for TreatmentConfig
impl UnwindSafe for TreatmentConfig
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
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>
Creates a shared type from an unshared type.