pub struct ChangeDetails {
pub old_path: Option<String>,
pub content_change: ContentChangeType,
pub metadata_changed: bool,
pub permissions_changed: bool,
pub timestamps_changed: bool,
pub rename_confidence: u8,
pub change_percentage: u8,
pub changed_ranges: Vec<(u64, u64)>,
pub lines_added: Option<usize>,
pub lines_removed: Option<usize>,
pub binary_changes: Option<BinaryChanges>,
}Expand description
变化详情
Fields§
§old_path: Option<String>旧路径(用于重命名/移动)
content_change: ContentChangeType内容变化类型
metadata_changed: bool元数据变化
permissions_changed: bool权限变化
timestamps_changed: bool时间戳变化
rename_confidence: u8重命名检测置信度(0-100)
change_percentage: u8变化百分比(0-100)
changed_ranges: Vec<(u64, u64)>变化的字节范围
lines_added: Option<usize>新增行数(文本文件)
lines_removed: Option<usize>删除行数(文本文件)
binary_changes: Option<BinaryChanges>二进制变化检测
Trait Implementations§
Source§impl Clone for ChangeDetails
impl Clone for ChangeDetails
Source§fn clone(&self) -> ChangeDetails
fn clone(&self) -> ChangeDetails
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 ChangeDetails
impl Debug for ChangeDetails
Source§impl Default for ChangeDetails
impl Default for ChangeDetails
Source§fn default() -> ChangeDetails
fn default() -> ChangeDetails
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChangeDetails
impl<'de> Deserialize<'de> for ChangeDetails
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ChangeDetails
impl RefUnwindSafe for ChangeDetails
impl Send for ChangeDetails
impl Sync for ChangeDetails
impl Unpin for ChangeDetails
impl UnwindSafe for ChangeDetails
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