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

Builder for creating a new reference.

Implementations

Create a new instance of the builder with the provided hash. The new instance will default to a branch kind and a name of “main”.

Set the hash.

Set the name.

Set the shortname.

Set the kind.

Build the Reference.

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.