pub struct FileChange {
pub path: PathBuf,
pub change_type: ChangeType,
pub commit_id: String,
pub timestamp: u64,
pub author: String,
pub is_bugfix: bool,
pub lines_added: u32,
pub lines_deleted: u32,
pub old_path: Option<PathBuf>,
}Expand description
A single recorded change to a file.
Fields§
§path: PathBufThe file path affected (relative to repo root).
change_type: ChangeTypeThe type of change.
commit_id: StringThe commit hash (abbreviated or full).
timestamp: u64Unix timestamp (seconds) of the commit.
Author name or email.
is_bugfix: boolWhether the commit message indicates a bug fix.
lines_added: u32Number of lines added in this change.
lines_deleted: u32Number of lines deleted in this change.
old_path: Option<PathBuf>Previous path, if this was a rename.
Trait Implementations§
Source§impl Clone for FileChange
impl Clone for FileChange
Source§fn clone(&self) -> FileChange
fn clone(&self) -> FileChange
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 FileChange
impl Debug for FileChange
Source§impl<'de> Deserialize<'de> for FileChange
impl<'de> Deserialize<'de> for FileChange
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 FileChange
impl RefUnwindSafe for FileChange
impl Send for FileChange
impl Sync for FileChange
impl Unpin for FileChange
impl UnsafeUnpin for FileChange
impl UnwindSafe for FileChange
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