#[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 get_comparison_method(&self) -> &Option<ComparisonMethod>
pub fn get_comparison_method(&self) -> &Option<ComparisonMethod>
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 get_comparison_format(&self) -> &Option<ComparisonFormatConfiguration>
pub fn get_comparison_format(&self) -> &Option<ComparisonFormatConfiguration>
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 for ComparisonConfigurationBuilder
impl PartialEq 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 ==.impl StructuralPartialEq for ComparisonConfigurationBuilder
Auto Trait Implementations§
impl Freeze for ComparisonConfigurationBuilder
impl RefUnwindSafe for ComparisonConfigurationBuilder
impl Send for ComparisonConfigurationBuilder
impl Sync for ComparisonConfigurationBuilder
impl Unpin for ComparisonConfigurationBuilder
impl UnwindSafe for ComparisonConfigurationBuilder
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.