#[non_exhaustive]pub struct ComparisonConfigurationBuilder { /* private fields */ }Expand description
A builder for ComparisonConfiguration.
Implementations§
source§impl ComparisonConfigurationBuilder
impl ComparisonConfigurationBuilder
sourcepub fn comparison_method(self, input: ComparisonMethod) -> Self
pub fn comparison_method(self, input: ComparisonMethod) -> Self
The method of the comparison. Choose from the following options:
-
DIFFERENCE -
PERCENT_DIFFERENCE -
PERCENT
sourcepub fn set_comparison_method(self, input: Option<ComparisonMethod>) -> Self
pub fn set_comparison_method(self, input: Option<ComparisonMethod>) -> Self
The method of the comparison. Choose from the following options:
-
DIFFERENCE -
PERCENT_DIFFERENCE -
PERCENT
sourcepub fn comparison_format(self, input: ComparisonFormatConfiguration) -> Self
pub fn comparison_format(self, input: ComparisonFormatConfiguration) -> Self
The format of the comparison.
sourcepub fn set_comparison_format(
self,
input: Option<ComparisonFormatConfiguration>
) -> Self
pub fn set_comparison_format( self, input: Option<ComparisonFormatConfiguration> ) -> Self
The format of the comparison.
sourcepub fn build(self) -> ComparisonConfiguration
pub fn build(self) -> ComparisonConfiguration
Consumes the builder and constructs a ComparisonConfiguration.
Trait Implementations§
source§impl Clone for ComparisonConfigurationBuilder
impl Clone for ComparisonConfigurationBuilder
source§fn clone(&self) -> ComparisonConfigurationBuilder
fn clone(&self) -> ComparisonConfigurationBuilder
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 Default for ComparisonConfigurationBuilder
impl Default for ComparisonConfigurationBuilder
source§fn default() -> ComparisonConfigurationBuilder
fn default() -> ComparisonConfigurationBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<ComparisonConfigurationBuilder> for ComparisonConfigurationBuilder
impl PartialEq<ComparisonConfigurationBuilder> for ComparisonConfigurationBuilder
source§fn eq(&self, other: &ComparisonConfigurationBuilder) -> bool
fn eq(&self, other: &ComparisonConfigurationBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.