pub struct FetchOptions<'cb> { /* private fields */ }
Expand description

Options which can be specified to various fetch operations.

Implementations

Creates a new blank set of fetch options

Set the callbacks to use for the fetch operation.

Set the proxy options to use for the fetch operation.

Set whether to perform a prune after the fetch.

Set whether to write the results to FETCH_HEAD.

Defaults to true.

Set how to behave regarding tags on the remote, such as auto-downloading tags for objects we’re downloading or downloading all of them.

The default is to auto-follow tags.

Set remote redirection settings; whether redirects to another host are permitted.

By default, git will follow a redirect on the initial request (/info/refs), but not subsequent requests.

Set extra headers for this fetch operation.

Trait Implementations

Returns the “default value” for a type. 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.