pub struct DiffOutput {
pub staged: bool,
pub patch: String,
pub file_count: usize,
}Fields§
§staged: booltrue when the diff is git diff --cached (HEAD vs index);
false when it’s git diff (index vs worktree).
patch: StringUnified diff patch, byte-for-byte equivalent to git diff [--cached].
file_count: usizeNumber of distinct files touched by the diff.
Trait Implementations§
Source§impl Clone for DiffOutput
impl Clone for DiffOutput
Source§fn clone(&self) -> DiffOutput
fn clone(&self) -> DiffOutput
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 moreSource§impl Debug for DiffOutput
impl Debug for DiffOutput
Source§impl<'de> Deserialize<'de> for DiffOutput
impl<'de> Deserialize<'de> for DiffOutput
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
impl Eq for DiffOutput
Source§impl PartialEq for DiffOutput
impl PartialEq for DiffOutput
Source§impl Serialize for DiffOutput
impl Serialize for DiffOutput
impl StructuralPartialEq for DiffOutput
Auto Trait Implementations§
impl Freeze for DiffOutput
impl RefUnwindSafe for DiffOutput
impl Send for DiffOutput
impl Sync for DiffOutput
impl Unpin for DiffOutput
impl UnsafeUnpin for DiffOutput
impl UnwindSafe for DiffOutput
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.