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.
Reserved, currently has no effect — see ExecutionMode (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
Sourcepub fn max_alignment_product(self, limit: Option<u64>) -> Self
pub fn max_alignment_product(self, limit: Option<u64>) -> Self
Bounds the m × n alignment table; Some by default
(DEFAULT_MAX_ALIGNMENT_PRODUCT). Pass None to disable the
bound entirely (RFC-035 §5.1 — this is opt-out, not opt-in).
Sourcepub fn max_input_bytes(self, limit: Option<u64>) -> Self
pub fn max_input_bytes(self, limit: Option<u64>) -> Self
Bounds input size, checked before any read begins; Some by
default (DEFAULT_MAX_INPUT_BYTES). Pass None to disable the
bound entirely.
Sourcepub fn limits(self, limits: Limits) -> Self
pub fn limits(self, limits: Limits) -> Self
Replace all limits at once, e.g. with Limits::hardened().
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