#[non_exhaustive]pub struct ReftableWriteOptions {
pub autocompaction_enabled: bool,
}Expand description
Repository-level overrides for reftable stack writes.
Pass through RepositoryOptions::with_reftable_write
when opening a crate::repo::Repository, or set fields on WriteOptions for direct
ReftableWriter use.
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.autocompaction_enabled: boolWhen false, skip automatic stack compaction after writes (default: true).
Implementations§
Source§impl ReftableWriteOptions
impl ReftableWriteOptions
Sourcepub fn with_autocompaction_enabled(self, enabled: bool) -> Self
pub fn with_autocompaction_enabled(self, enabled: bool) -> Self
Override Self::autocompaction_enabled.
Trait Implementations§
Source§impl Clone for ReftableWriteOptions
impl Clone for ReftableWriteOptions
impl Copy for ReftableWriteOptions
Source§impl Debug for ReftableWriteOptions
impl Debug for ReftableWriteOptions
Source§impl Default for ReftableWriteOptions
impl Default for ReftableWriteOptions
impl Eq for ReftableWriteOptions
Source§impl PartialEq for ReftableWriteOptions
impl PartialEq for ReftableWriteOptions
impl StructuralPartialEq for ReftableWriteOptions
Auto Trait Implementations§
impl Forget for ReftableWriteOptions
impl Freeze for ReftableWriteOptions
impl RefUnwindSafe for ReftableWriteOptions
impl Send for ReftableWriteOptions
impl Sync for ReftableWriteOptions
impl Unpin for ReftableWriteOptions
impl UnsafeUnpin for ReftableWriteOptions
impl UnwindSafe for ReftableWriteOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.