pub enum GitReflogRecord<'a> {
Entry {
flags: u8,
old: GitOid,
new: GitOid,
time: i64,
tz: i16,
msg: &'a str,
},
Cursor {
after: &'a str,
pos: u64,
},
}Expand description
One decoded record from a GIT_REFLOG response payload.
Variants§
Entry
REFLOG_ENTRY 0x01: [kind:1][flags:1][old:32][new:32][time:8 i64 s][tz:2 i16 min][msg_len:2][msg:N] Entry signatures are omitted: the message carries the operation, which is what a caller reads.
Cursor
Trait Implementations§
Source§impl<'a> Clone for GitReflogRecord<'a>
impl<'a> Clone for GitReflogRecord<'a>
Source§fn clone(&self) -> GitReflogRecord<'a>
fn clone(&self) -> GitReflogRecord<'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 GitReflogRecord<'a>
impl<'a> Debug for GitReflogRecord<'a>
impl<'a> Eq for GitReflogRecord<'a>
Source§impl<'a> PartialEq for GitReflogRecord<'a>
impl<'a> PartialEq for GitReflogRecord<'a>
impl<'a> StructuralPartialEq for GitReflogRecord<'a>
Auto Trait Implementations§
impl<'a> Freeze for GitReflogRecord<'a>
impl<'a> RefUnwindSafe for GitReflogRecord<'a>
impl<'a> Send for GitReflogRecord<'a>
impl<'a> Sync for GitReflogRecord<'a>
impl<'a> Unpin for GitReflogRecord<'a>
impl<'a> UnsafeUnpin for GitReflogRecord<'a>
impl<'a> UnwindSafe for GitReflogRecord<'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