Struct git_checks::Topic

source ·
pub struct Topic {
    pub base: CommitId,
    pub sha1: CommitId,
    pub diffs: Vec<DiffInfo>,
    /* private fields */
}
Expand description

Representation of a topic with information useful for commit checks.

Fields§

§base: CommitId

The SHA1 of the base commit.

§sha1: CommitId

The SHA1 of the commit.

§diffs: Vec<DiffInfo>

Information about files that changed in this commit.

Implementations§

Create a new commit from the given context for the SHA1.

Get the patch difference for the given path.

Trait Implementations§

A workarea which may be used to work on the content.
The SHA1 of the commit (if the content is of a commit).
The differences in the content.
Get the patch difference for the given path.
Return a vector of files modified in a diff. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.