pub struct WriteTreeFlags {
pub missing_ok: bool,
pub ignore_cache_tree: bool,
pub persistence: WriteTreePersistence,
pub silent: bool,
}Expand description
Options for cache_tree_update and write_tree_update_index.
Fields§
§missing_ok: boolAllow missing blob OIDs when building trees.
ignore_cache_tree: boolDiscard the index cache-tree and rebuild from scratch.
persistence: WriteTreePersistenceHow tree objects are stored or hashed.
silent: boolSkip mtime freshen on existing objects when writing.
Implementations§
Source§impl WriteTreeFlags
impl WriteTreeFlags
Sourcepub fn silent() -> Self
pub fn silent() -> Self
Like Self::default, but tree writes use WriteOptions::silent so existing
objects are not freshened (used when refreshing the index cache-tree after commit).
Trait Implementations§
Source§impl Clone for WriteTreeFlags
impl Clone for WriteTreeFlags
impl Copy for WriteTreeFlags
Source§impl Debug for WriteTreeFlags
impl Debug for WriteTreeFlags
Source§impl Default for WriteTreeFlags
impl Default for WriteTreeFlags
impl Eq for WriteTreeFlags
Source§impl PartialEq for WriteTreeFlags
impl PartialEq for WriteTreeFlags
impl StructuralPartialEq for WriteTreeFlags
Auto Trait Implementations§
impl Freeze for WriteTreeFlags
impl RefUnwindSafe for WriteTreeFlags
impl Send for WriteTreeFlags
impl Sync for WriteTreeFlags
impl Unpin for WriteTreeFlags
impl UnsafeUnpin for WriteTreeFlags
impl UnwindSafe for WriteTreeFlags
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.