Struct git_repository::remote::ref_map::Options
source · pub struct Options {
pub prefix_from_spec_as_filter_on_remote: bool,
pub handshake_parameters: Vec<(String, Option<String>)>,
}
Available on crate features
async-network-client
or blocking-network-client
only.Expand description
For use in Connection::ref_map()
.
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.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more