#[non_exhaustive]pub struct ExperimentResultsDataBuilder { /* private fields */ }
Expand description
A builder for ExperimentResultsData
.
Implementations§
source§impl ExperimentResultsDataBuilder
impl ExperimentResultsDataBuilder
sourcepub fn metric_name(self, input: impl Into<String>) -> Self
pub fn metric_name(self, input: impl Into<String>) -> Self
The name of the metric.
sourcepub fn set_metric_name(self, input: Option<String>) -> Self
pub fn set_metric_name(self, input: Option<String>) -> Self
The name of the metric.
sourcepub fn get_metric_name(&self) -> &Option<String>
pub fn get_metric_name(&self) -> &Option<String>
The name of the metric.
sourcepub fn treatment_name(self, input: impl Into<String>) -> Self
pub fn treatment_name(self, input: impl Into<String>) -> Self
The treatment, or variation, that returned the values
in this structure.
sourcepub fn set_treatment_name(self, input: Option<String>) -> Self
pub fn set_treatment_name(self, input: Option<String>) -> Self
The treatment, or variation, that returned the values
in this structure.
sourcepub fn get_treatment_name(&self) -> &Option<String>
pub fn get_treatment_name(&self) -> &Option<String>
The treatment, or variation, that returned the values
in this structure.
sourcepub fn result_stat(self, input: ExperimentResultResponseType) -> Self
pub fn result_stat(self, input: ExperimentResultResponseType) -> Self
The experiment statistic that these results pertain to.
sourcepub fn set_result_stat(
self,
input: Option<ExperimentResultResponseType>
) -> Self
pub fn set_result_stat( self, input: Option<ExperimentResultResponseType> ) -> Self
The experiment statistic that these results pertain to.
sourcepub fn get_result_stat(&self) -> &Option<ExperimentResultResponseType>
pub fn get_result_stat(&self) -> &Option<ExperimentResultResponseType>
The experiment statistic that these results pertain to.
sourcepub fn values(self, input: f64) -> Self
pub fn values(self, input: f64) -> Self
Appends an item to values
.
To override the contents of this collection use set_values
.
The values for the metricName
that were recorded in the experiment.
sourcepub fn set_values(self, input: Option<Vec<f64>>) -> Self
pub fn set_values(self, input: Option<Vec<f64>>) -> Self
The values for the metricName
that were recorded in the experiment.
sourcepub fn get_values(&self) -> &Option<Vec<f64>>
pub fn get_values(&self) -> &Option<Vec<f64>>
The values for the metricName
that were recorded in the experiment.
sourcepub fn build(self) -> ExperimentResultsData
pub fn build(self) -> ExperimentResultsData
Consumes the builder and constructs a ExperimentResultsData
.
Trait Implementations§
source§impl Clone for ExperimentResultsDataBuilder
impl Clone for ExperimentResultsDataBuilder
source§fn clone(&self) -> ExperimentResultsDataBuilder
fn clone(&self) -> ExperimentResultsDataBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ExperimentResultsDataBuilder
impl Debug for ExperimentResultsDataBuilder
source§impl Default for ExperimentResultsDataBuilder
impl Default for ExperimentResultsDataBuilder
source§fn default() -> ExperimentResultsDataBuilder
fn default() -> ExperimentResultsDataBuilder
source§impl PartialEq for ExperimentResultsDataBuilder
impl PartialEq for ExperimentResultsDataBuilder
source§fn eq(&self, other: &ExperimentResultsDataBuilder) -> bool
fn eq(&self, other: &ExperimentResultsDataBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ExperimentResultsDataBuilder
Auto Trait Implementations§
impl Freeze for ExperimentResultsDataBuilder
impl RefUnwindSafe for ExperimentResultsDataBuilder
impl Send for ExperimentResultsDataBuilder
impl Sync for ExperimentResultsDataBuilder
impl Unpin for ExperimentResultsDataBuilder
impl UnwindSafe for ExperimentResultsDataBuilder
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