pub struct FileChange {
pub event_id: i64,
pub path: String,
pub change_kind: ChangeKind,
pub before_hash: Option<String>,
pub after_hash: Option<String>,
pub is_binary: bool,
}Expand description
A file change row attached to an event (SRS §4.1 file_changes).
Fields§
§event_id: i64The owning event id.
path: StringPath relative to the session cwd.
change_kind: ChangeKindChange kind.
before_hash: Option<String>Pre-change blob hash, if known.
after_hash: Option<String>Post-change blob hash, if known.
is_binary: boolWhether the file was detected as binary.
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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