pub struct GitDiffRequest<'a> {
pub nonce: u16,
pub repo_id: u16,
pub flags: u8,
pub rename: u8,
pub old: GitEndpoint,
pub new: GitEndpoint,
pub path: &'a str,
pub after: &'a str,
}Expand description
A decoded C2S_GIT_DIFF request.
Fields§
§nonce: u16§repo_id: u16§flags: u8§rename: u8Rename similarity threshold: 0 = the exact-oid join, 1..=100 a
percentage (git’s own default is 50), above that INVALID.
old: GitEndpoint§new: GitEndpoint§path: &'a strEmpty = whole tree; escaped form.
after: &'a strEmpty = from the beginning; else a CURSOR record’s path.
Trait Implementations§
Source§impl<'a> Clone for GitDiffRequest<'a>
impl<'a> Clone for GitDiffRequest<'a>
Source§fn clone(&self) -> GitDiffRequest<'a>
fn clone(&self) -> GitDiffRequest<'a>
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<'a> Debug for GitDiffRequest<'a>
impl<'a> Debug for GitDiffRequest<'a>
impl<'a> Eq for GitDiffRequest<'a>
Source§impl<'a> PartialEq for GitDiffRequest<'a>
impl<'a> PartialEq for GitDiffRequest<'a>
impl<'a> StructuralPartialEq for GitDiffRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for GitDiffRequest<'a>
impl<'a> RefUnwindSafe for GitDiffRequest<'a>
impl<'a> Send for GitDiffRequest<'a>
impl<'a> Sync for GitDiffRequest<'a>
impl<'a> Unpin for GitDiffRequest<'a>
impl<'a> UnsafeUnpin for GitDiffRequest<'a>
impl<'a> UnwindSafe for GitDiffRequest<'a>
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