pub struct Options {
    pub prefix_from_spec_as_filter_on_remote: bool,
    pub handshake_parameters: Vec<(String, Option<String>)>,
    pub extra_refspecs: Vec<RefSpec>,
}
Available on crate features async-network-client or blocking-network-client only.
Expand description

Fields§

§prefix_from_spec_as_filter_on_remote: bool

Use a two-component prefix derived from the ref-spec’s source, like refs/heads/ to let the server pre-filter refs with great potential for savings in traffic and local CPU time. Defaults to true.

§handshake_parameters: Vec<(String, Option<String>)>

Parameters in the form of (name, optional value) to add to the handshake.

This is useful in case of custom servers.

§extra_refspecs: Vec<RefSpec>

A list of refspecs to use as implicit refspecs which won’t be saved or otherwise be part of the remote in question.

This is useful for handling remote.<name>.tagOpt for example.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
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 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
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. 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.