pub struct FileDiffRef {
pub path: String,
pub diff_file: String,
pub byte_len: usize,
}Expand description
Reference to a per-file diff stored on disk.
Tracks the repository-relative file path, the absolute path to the diff file on disk, and the byte length of that diff. Gives consumers per-file size information without loading diff content into memory.
Fields§
§path: StringRepository-relative path of the changed file.
diff_file: StringAbsolute path to the per-file diff file on disk.
byte_len: usizeByte length of the per-file diff content.
Trait Implementations§
Source§impl Clone for FileDiffRef
impl Clone for FileDiffRef
Source§fn clone(&self) -> FileDiffRef
fn clone(&self) -> FileDiffRef
Returns a duplicate of the value. Read more
1.0.0 · 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 FileDiffRef
impl Debug for FileDiffRef
Source§impl<'de> Deserialize<'de> for FileDiffRef
impl<'de> Deserialize<'de> for FileDiffRef
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 FileDiffRef
impl RefUnwindSafe for FileDiffRef
impl Send for FileDiffRef
impl Sync for FileDiffRef
impl Unpin for FileDiffRef
impl UnsafeUnpin for FileDiffRef
impl UnwindSafe for FileDiffRef
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