pub struct CommitBuilder { /* private fields */ }
Expand description

Builder for creating a new commit.

Implementations

Create a new instance of the builder with the provided hash. The new instance will default to a committed date of Jan 1, 2021 UTC. All other fields are None.

Set the hash.

Set the reference, use create::testutil::ReferenceBuilder to build a Reference.

Set the author name and related email address.

Set the authored commit time from number of seconds since unix epoch.

Set the committer name and related email address.

Set the committed commit time from number of seconds since unix epoch.

Set the commit summary.

Set the commit message.

Build the Commit.

Trait Implementations

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 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.