pub enum GitTreeRecord<'a> {
Entry {
otype: u8,
mode: u32,
oid: GitOid,
name: &'a str,
},
Cursor {
after: &'a str,
pos: u64,
},
}Expand description
One decoded record from a GIT_TREE response payload.
Variants§
Entry
TREE_ENTRY 0x02: [kind:1][otype:1][mode:4][oid:32][name_len:2][name:N]
mode is the raw git mode (100644, 100755, 120000, 40000, 160000).
Cursor
CURSOR 0x7F: continue with after as the request’s after.
Trait Implementations§
Source§impl<'a> Clone for GitTreeRecord<'a>
impl<'a> Clone for GitTreeRecord<'a>
Source§fn clone(&self) -> GitTreeRecord<'a>
fn clone(&self) -> GitTreeRecord<'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 GitTreeRecord<'a>
impl<'a> Debug for GitTreeRecord<'a>
impl<'a> Eq for GitTreeRecord<'a>
Source§impl<'a> PartialEq for GitTreeRecord<'a>
impl<'a> PartialEq for GitTreeRecord<'a>
impl<'a> StructuralPartialEq for GitTreeRecord<'a>
Auto Trait Implementations§
impl<'a> Freeze for GitTreeRecord<'a>
impl<'a> RefUnwindSafe for GitTreeRecord<'a>
impl<'a> Send for GitTreeRecord<'a>
impl<'a> Sync for GitTreeRecord<'a>
impl<'a> Unpin for GitTreeRecord<'a>
impl<'a> UnsafeUnpin for GitTreeRecord<'a>
impl<'a> UnwindSafe for GitTreeRecord<'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