pub struct DiffOptionsBuilder { /* private fields */ }Expand description
Fluent builder for DiffOptions.
Call .build() to validate the combination and obtain a DiffOptions.
Implementations§
Source§impl DiffOptionsBuilder
impl DiffOptionsBuilder
pub fn new() -> Self
pub fn formula_compare(self, mode: FormulaCompareMode) -> Self
pub fn format_compare(self, mode: FormatCompareMode) -> Self
Sourcepub fn object_mode(self, mode: ObjectCompareMode) -> Self
pub fn object_mode(self, mode: ObjectCompareMode) -> Self
Set the object comparison mode (RFC-023).
Sourcepub fn execution_mode(self, mode: ExecutionMode) -> Self
pub fn execution_mode(self, mode: ExecutionMode) -> Self
Set the execution mode (RFC-025).
pub fn include_formula_cached_values(self, yes: bool) -> Self
pub fn number_compare(self, policy: NumberComparePolicy) -> Self
pub fn numeric_type_policy(self, policy: NumericTypePolicy) -> Self
pub fn type_mismatch_policy(self, policy: TypeMismatchPolicy) -> Self
pub fn number_compare_policy(self, policy: NumberComparePolicy) -> Self
pub fn sheet_matching(self, mode: SheetMatchingMode) -> Self
pub fn max_sheets(self, n: u32) -> Self
pub fn max_cells_compared(self, n: u64) -> Self
pub fn max_diffs_returned(self, n: u64) -> Self
pub fn progress<S: ProgressSink + 'static>(self, sink: S) -> Self
pub fn cancellation<C: Cancellation + 'static>(self, token: C) -> Self
Sourcepub fn build_with_matching(
self,
matching: MatchingOptions,
) -> Result<DiffOptions, SheetsDiffError>
pub fn build_with_matching( self, matching: MatchingOptions, ) -> Result<DiffOptions, SheetsDiffError>
Build with a fully specified MatchingOptions (convenience for alignment tests).
Sourcepub fn build(self) -> Result<DiffOptions, SheetsDiffError>
pub fn build(self) -> Result<DiffOptions, SheetsDiffError>
Validate and return the built options.
Trait Implementations§
Source§impl Default for DiffOptionsBuilder
impl Default for DiffOptionsBuilder
Source§fn default() -> DiffOptionsBuilder
fn default() -> DiffOptionsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for DiffOptionsBuilder
impl !Sync for DiffOptionsBuilder
impl !UnwindSafe for DiffOptionsBuilder
impl Freeze for DiffOptionsBuilder
impl Send for DiffOptionsBuilder
impl Unpin for DiffOptionsBuilder
impl UnsafeUnpin for DiffOptionsBuilder
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