pub struct DiffOptions {
pub compare_size: bool,
pub compare_mtime: bool,
pub compare_checksum: bool,
pub ignore_patterns: Vec<String>,
pub max_depth: Option<usize>,
pub follow_symlinks: bool,
pub detect_moves: bool,
pub similarity_threshold: f64,
pub detect_conflicts: bool,
pub include_hidden: bool,
pub large_file_threshold: u64,
}Expand description
差异检测选项
Fields§
§compare_size: bool比较文件大小
compare_mtime: bool比较修改时间
compare_checksum: bool比较文件校验和
ignore_patterns: Vec<String>忽略模式列表
max_depth: Option<usize>最大检测深度
follow_symlinks: bool是否跟随符号链接
detect_moves: bool是否检测文件移动
similarity_threshold: f64相似度阈值(用于移动检测)
detect_conflicts: bool是否检测冲突
是否包含隐藏文件
large_file_threshold: u64文件大小阈值(大文件处理)
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
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