pub struct GitPatchRequest<'a> {
pub nonce: u16,
pub repo_id: u16,
pub flags: u16,
pub context: u8,
pub rename: u8,
pub old: GitEndpoint,
pub new: GitEndpoint,
pub path: &'a str,
pub max_len: u32,
pub after: &'a str,
pub after_pos: u64,
}Expand description
A decoded C2S_GIT_PATCH request.
Fields§
§nonce: u16§repo_id: u16§flags: u16Low six bits are GIT_DIFF’s; TEXT/CHAR_SPANS/NO_SPANS follow.
context: u8Context lines; 0 = server default (3).
rename: u8Rename similarity threshold, as GIT_DIFF.
old: GitEndpoint§new: GitEndpoint§path: &'a strNon-empty = one file’s patch; empty = the whole diff.
max_len: u32§after: &'a strEmpty = from the beginning; else a CURSOR record’s path.
after_pos: u64Rows already delivered for after, so a file larger than the byte
budget resumes mid-hunk instead of restarting forever.
Trait Implementations§
Source§impl<'a> Clone for GitPatchRequest<'a>
impl<'a> Clone for GitPatchRequest<'a>
Source§fn clone(&self) -> GitPatchRequest<'a>
fn clone(&self) -> GitPatchRequest<'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 GitPatchRequest<'a>
impl<'a> Debug for GitPatchRequest<'a>
impl<'a> Eq for GitPatchRequest<'a>
Source§impl<'a> PartialEq for GitPatchRequest<'a>
impl<'a> PartialEq for GitPatchRequest<'a>
impl<'a> StructuralPartialEq for GitPatchRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for GitPatchRequest<'a>
impl<'a> RefUnwindSafe for GitPatchRequest<'a>
impl<'a> Send for GitPatchRequest<'a>
impl<'a> Sync for GitPatchRequest<'a>
impl<'a> Unpin for GitPatchRequest<'a>
impl<'a> UnsafeUnpin for GitPatchRequest<'a>
impl<'a> UnwindSafe for GitPatchRequest<'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