pub struct MetadataOptions {
pub shard_level: u8,
pub force: bool,
}Expand description
Options that control mutating metadata operations.
Fields§
§shard_level: u8Fanout depth (number of 2-hex-char directory segments).
1 means ab/cdef01... (like git-notes), 2 means ab/cd/ef01....
force: boolOverwrite an existing entry without error.
Trait Implementations§
Source§impl Clone for MetadataOptions
impl Clone for MetadataOptions
Source§fn clone(&self) -> MetadataOptions
fn clone(&self) -> MetadataOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MetadataOptions
impl Debug for MetadataOptions
Auto Trait Implementations§
impl Freeze for MetadataOptions
impl RefUnwindSafe for MetadataOptions
impl Send for MetadataOptions
impl Sync for MetadataOptions
impl Unpin for MetadataOptions
impl UnsafeUnpin for MetadataOptions
impl UnwindSafe for MetadataOptions
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