pub struct DiffFile {
pub path: String,
pub status: String,
pub old_path: Option<String>,
pub bytes: Option<u64>,
pub is_eof: Option<bool>,
pub raw: Option<String>,
}Expand description
A single file within a diff.
Fields§
§path: StringFile path.
status: StringChange status (e.g. "added", "modified", "deleted").
old_path: Option<String>Previous path if the file was renamed.
bytes: Option<u64>Size in bytes.
is_eof: Option<bool>Whether the file ends without a newline.
raw: Option<String>Raw diff output for this file.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DiffFile
impl<'de> Deserialize<'de> for DiffFile
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
Auto Trait Implementations§
impl Freeze for DiffFile
impl RefUnwindSafe for DiffFile
impl Send for DiffFile
impl Sync for DiffFile
impl Unpin for DiffFile
impl UnwindSafe for DiffFile
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