#[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 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 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 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 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
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 ExperimentResultsDataBuilder
impl Debug for ExperimentResultsDataBuilder
source§impl Default for ExperimentResultsDataBuilder
impl Default for ExperimentResultsDataBuilder
source§fn default() -> ExperimentResultsDataBuilder
fn default() -> ExperimentResultsDataBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<ExperimentResultsDataBuilder> for ExperimentResultsDataBuilder
impl PartialEq<ExperimentResultsDataBuilder> for ExperimentResultsDataBuilder
source§fn eq(&self, other: &ExperimentResultsDataBuilder) -> bool
fn eq(&self, other: &ExperimentResultsDataBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.