pub struct CommitFile {
pub path: RepoPath,
pub status: FileStatus,
pub additions: Option<u32>,
pub deletions: Option<u32>,
pub patch: Option<String>,
pub previous_path: Option<RepoPath>,
pub binary: bool,
}Fields§
§path: RepoPath§status: FileStatus§additions: Option<u32>§deletions: Option<u32>§patch: Option<String>§previous_path: Option<RepoPath>§binary: boolTrue only when the backend has positively identified binary content.
Trait Implementations§
Source§impl Clone for CommitFile
impl Clone for CommitFile
Source§fn clone(&self) -> CommitFile
fn clone(&self) -> CommitFile
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 CommitFile
impl Debug for CommitFile
Source§impl<'de> Deserialize<'de> for CommitFile
impl<'de> Deserialize<'de> for CommitFile
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 CommitFile
Source§impl PartialEq for CommitFile
impl PartialEq for CommitFile
impl StructuralPartialEq for CommitFile
Auto Trait Implementations§
impl Freeze for CommitFile
impl RefUnwindSafe for CommitFile
impl Send for CommitFile
impl Sync for CommitFile
impl Unpin for CommitFile
impl UnsafeUnpin for CommitFile
impl UnwindSafe for CommitFile
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