Skip to main content

GitCommitRecord

Enum GitCommitRecord 

Source
pub enum GitCommitRecord<'a> {
    Commit {
Show 13 fields flags: u8, oid: GitOid, tree: GitOid, parents: Vec<GitOid>, author_time: i64, author_tz: i16, committer_time: i64, committer_tz: i16, author_name: &'a str, author_email: &'a str, committer_name: &'a str, committer_email: &'a str, message: &'a str,
}, PathAt { otype: u8, mode: u32, oid: GitOid, path: &'a str, }, }
Expand description

One decoded record from a GIT_COMMITS payload.

Variants§

§

Commit

COMMIT 0x01: [kind:1][flags:1][oid:32][tree:32][n_parents:1][parents:32·N] [author_time:8 i64 s][author_tz:2 i16 min][committer_time:8][committer_tz:2] [author_name_len:2][author_name:N][author_email_len:2][email:N] [committer_name_len:2][…][committer_email_len:2][…][msg_len:4][message:N]

Fields

§flags: u8
§tree: GitOid
§parents: Vec<GitOid>
§author_time: i64
§author_tz: i16
§committer_time: i64
§committer_tz: i16
§author_name: &'a str
§author_email: &'a str
§committer_name: &'a str
§committer_email: &'a str
§message: &'a str
§

PathAt

PATH_AT 0x02: [kind:1][otype:1][mode:4][oid:32][path_len:2][path:N] With PATH_OIDS: the object at the followed path as of the preceding COMMIT record; zero oid when that commit deletes it.

Fields

§otype: u8
§mode: u32
§path: &'a str

Trait Implementations§

Source§

impl<'a> Clone for GitCommitRecord<'a>

Source§

fn clone(&self) -> GitCommitRecord<'a>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Debug for GitCommitRecord<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> Eq for GitCommitRecord<'a>

Source§

impl<'a> PartialEq for GitCommitRecord<'a>

Source§

fn eq(&self, other: &GitCommitRecord<'a>) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl<'a> StructuralPartialEq for GitCommitRecord<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for GitCommitRecord<'a>

§

impl<'a> RefUnwindSafe for GitCommitRecord<'a>

§

impl<'a> Send for GitCommitRecord<'a>

§

impl<'a> Sync for GitCommitRecord<'a>

§

impl<'a> Unpin for GitCommitRecord<'a>

§

impl<'a> UnsafeUnpin for GitCommitRecord<'a>

§

impl<'a> UnwindSafe for GitCommitRecord<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.