Struct git_repository::open::Options
source · [−]pub struct Options { /* private fields */ }Expand description
The options used in [`Repository::open_opts
Implementations
sourceimpl Options
impl Options
sourcepub fn object_store_slots(self, slots: Slots) -> Self
pub fn object_store_slots(self, slots: Slots) -> Self
Set the amount of slots to use for the object database. It’s a value that doesn’t need changes on the client, typically, but should be controlled on the server.
sourcepub fn replacement_objects(self, config: ReplacementObjects) -> Self
pub fn replacement_objects(self, config: ReplacementObjects) -> Self
Configure replacement objects, see the ReplacementObjects type for details.
sourcepub fn permissions(self, permissions: Permissions) -> Self
pub fn permissions(self, permissions: Permissions) -> Self
Set the given permissions, which are typically derived by a Trust level.
Trait Implementations
sourceimpl DefaultForLevel for Options
impl DefaultForLevel for Options
sourcefn default_for_level(level: Trust) -> Self
fn default_for_level(level: Trust) -> Self
Produce a default value for the given trust level.
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more