pub struct GhDiffFile {
pub path: String,
pub previous_path: Option<String>,
pub status: GhFileStatus,
pub additions: u32,
pub deletions: u32,
pub patch: Option<String>,
}Fields§
§path: StringThe path in the head commit (for removed, the deleted path).
previous_path: Option<String>Renamed and copied files.
status: GhFileStatus§additions: u32§deletions: u32§patch: Option<String>Unified hunks without file headers; None when GitHub omits them
(binary or large files).
Trait Implementations§
Source§impl Clone for GhDiffFile
impl Clone for GhDiffFile
Source§impl Debug for GhDiffFile
impl Debug for GhDiffFile
Source§impl<'de> Deserialize<'de> for GhDiffFile
impl<'de> Deserialize<'de> for GhDiffFile
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 GhDiffFile
Source§impl PartialEq for GhDiffFile
impl PartialEq for GhDiffFile
Source§impl Serialize for GhDiffFile
impl Serialize for GhDiffFile
impl StructuralPartialEq for GhDiffFile
Auto Trait Implementations§
impl Forget for GhDiffFile
impl Freeze for GhDiffFile
impl Move for GhDiffFile
impl RefUnwindSafe for GhDiffFile
impl Send for GhDiffFile
impl Sync for GhDiffFile
impl Unpin for GhDiffFile
impl UnsafeUnpin for GhDiffFile
impl UnwindSafe for GhDiffFile
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.