pub enum IdStrategy<'a> {
Sequential,
ContentAddressed(&'a [u8]),
CallerProvided(&'a str),
CommitOid,
}Expand description
Strategy for generating record IDs.
Variants§
Sequential
Scan existing refs and use max + 1.
ContentAddressed(&'a [u8])
Hash caller-supplied bytes using git’s object hash.
CallerProvided(&'a str)
Use the caller’s string directly.
CommitOid
Name the record’s ref after the OID of the commit that create writes.
Auto Trait Implementations§
impl<'a> Freeze for IdStrategy<'a>
impl<'a> RefUnwindSafe for IdStrategy<'a>
impl<'a> Send for IdStrategy<'a>
impl<'a> Sync for IdStrategy<'a>
impl<'a> Unpin for IdStrategy<'a>
impl<'a> UnsafeUnpin for IdStrategy<'a>
impl<'a> UnwindSafe for IdStrategy<'a>
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