pub struct ApiFileDiff {
pub diff: FileDiff,
pub previous_path: Option<String>,
pub additions: u32,
pub deletions: u32,
pub omitted: Option<String>,
}Expand description
One changed file with its hunks.
omitted says why a file that did change carries no hunks (the host
did not send its patch: too big, too many files). A binary file, a
rename without edits or a mode change has no hunks either and is not
omitted.
Fields§
§diff: FileDiff§previous_path: Option<String>The path at the merge base, for a rename.
additions: u32§deletions: u32§omitted: Option<String>Trait Implementations§
Source§impl Clone for ApiFileDiff
impl Clone for ApiFileDiff
Source§impl Debug for ApiFileDiff
impl Debug for ApiFileDiff
Source§impl<'de> Deserialize<'de> for ApiFileDiff
impl<'de> Deserialize<'de> for ApiFileDiff
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 ApiFileDiff
Source§impl PartialEq for ApiFileDiff
impl PartialEq for ApiFileDiff
Source§impl Serialize for ApiFileDiff
impl Serialize for ApiFileDiff
impl StructuralPartialEq for ApiFileDiff
Auto Trait Implementations§
impl Forget for ApiFileDiff
impl Freeze for ApiFileDiff
impl Move for ApiFileDiff
impl RefUnwindSafe for ApiFileDiff
impl Send for ApiFileDiffwhere
RawVecInner: Send,
impl Sync for ApiFileDiffwhere
RawVecInner: Sync,
impl Unpin for ApiFileDiff
impl UnsafeUnpin for ApiFileDiffwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Hunk>: UnsafeUnpin,
impl UnwindSafe for ApiFileDiffwhere
RawVecInner: UnwindSafe,
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§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.