#[non_exhaustive]pub struct MidxOptions {
pub bitmap: bool,
pub dry_run: bool,
pub version: Option<u8>,
}Expand description
Options for Repository::write_midx.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.bitmap: boolWrite a reachability .bitmap sidecar when the MIDX is a root file.
dry_run: boolReport without writing multi-pack-index.
version: Option<u8>On-disk MIDX version (1 or 2). None uses midx.version from the repository
config, and v1 when that is unset, so every Git with multi-pack-index support can
read the result.
Implementations§
Source§impl MidxOptions
impl MidxOptions
Sourcepub fn with_bitmap(bitmap: bool) -> Self
pub fn with_bitmap(bitmap: bool) -> Self
Build MIDX write options with an explicit bitmap sidecar flag.
Sourcepub fn with_dry_run(dry_run: bool) -> Self
pub fn with_dry_run(dry_run: bool) -> Self
Build options with Self::dry_run set.
Trait Implementations§
Source§impl Clone for MidxOptions
impl Clone for MidxOptions
impl Copy for MidxOptions
Source§impl Debug for MidxOptions
impl Debug for MidxOptions
Source§impl Default for MidxOptions
impl Default for MidxOptions
impl Eq for MidxOptions
Source§impl PartialEq for MidxOptions
impl PartialEq for MidxOptions
impl StructuralPartialEq for MidxOptions
Auto Trait Implementations§
impl Freeze for MidxOptions
impl RefUnwindSafe for MidxOptions
impl Send for MidxOptions
impl Sync for MidxOptions
impl Unpin for MidxOptions
impl UnsafeUnpin for MidxOptions
impl UnwindSafe for MidxOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more