pub struct GenericDiffOptions {
pub detect_reorder: bool,
pub detect_moves: bool,
pub max_depth: usize,
}Expand description
Options for diff computation
Fields§
§detect_reorder: boolInclude paths to arrays that were reordered
detect_moves: boolUse move operations for object field renames
max_depth: usizeMaximum depth to diff (0 = unlimited)
Implementations§
Source§impl DiffOptions
impl DiffOptions
Sourcepub fn new() -> DiffOptions
pub fn new() -> DiffOptions
Create default diff options
Sourcepub const fn with_move_detection(self) -> DiffOptions
pub const fn with_move_detection(self) -> DiffOptions
Enable move detection
Sourcepub const fn with_reorder_detection(self) -> DiffOptions
pub const fn with_reorder_detection(self) -> DiffOptions
Enable reorder detection
Sourcepub const fn with_max_depth(self, depth: usize) -> DiffOptions
pub const fn with_max_depth(self, depth: usize) -> DiffOptions
Set maximum diff depth
Trait Implementations§
Source§impl Clone for DiffOptions
impl Clone for DiffOptions
Source§fn clone(&self) -> DiffOptions
fn clone(&self) -> DiffOptions
Returns a duplicate 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 DiffOptions
impl Debug for DiffOptions
Source§impl Default for DiffOptions
impl Default for DiffOptions
Source§fn default() -> DiffOptions
fn default() -> DiffOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DiffOptions
impl RefUnwindSafe for DiffOptions
impl Send for DiffOptions
impl Sync for DiffOptions
impl Unpin for DiffOptions
impl UnwindSafe for DiffOptions
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