pub struct FileDiff {
pub path: String,
pub change: Change,
pub patch: Option<String>,
pub binary: bool,
pub secret: bool,
}Expand description
How one file or link of a tree differs between two points.
Fields§
§path: StringIts path at the later point, or where it was, if it is gone then.
change: ChangeWhat changed.
patch: Option<String>The unified diff of its text, if both versions are text that this device holds and they differ.
binary: boolWhether a version is no text, so that only which versions differ is told.
secret: boolWhether it is a secret file, whose lines a diff shows only when asked for, with the secrets unlocked (technical design: secrets in trees).
Trait Implementations§
impl Eq for FileDiff
impl StructuralPartialEq for FileDiff
Auto Trait Implementations§
impl Forget for FileDiff
impl Freeze for FileDiff
impl Move for FileDiff
impl RefUnwindSafe for FileDiff
impl Send for FileDiff
impl Sync for FileDiff
impl Unpin for FileDiff
impl UnsafeUnpin for FileDiff
impl UnwindSafe for FileDiff
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.