pub struct ReftableTransactionUpdate {
pub refname: String,
pub value: Option<RefValue>,
pub log: Option<LogRecord>,
pub expected_old: Option<ObjectId>,
}Expand description
A ref update that should be written to a reftable transaction.
The refname must already be the backend storage refname (for example a
namespaced or per-worktree ref after storage routing). All updates passed to
one transaction are written with the same update index, matching Git’s
reftable backend for update-ref --stdin batches.
Fields§
§refname: StringFull storage refname to update.
value: Option<RefValue>New ref value when this item updates a ref; None writes only a reflog line.
log: Option<LogRecord>Optional reflog entry to record in the same table and update index.
expected_old: Option<ObjectId>When set, the ref’s current oid must match before the update is applied (checked while the stack lock is held).
Trait Implementations§
Source§impl Clone for ReftableTransactionUpdate
impl Clone for ReftableTransactionUpdate
Auto Trait Implementations§
impl Freeze for ReftableTransactionUpdate
impl RefUnwindSafe for ReftableTransactionUpdate
impl Send for ReftableTransactionUpdate
impl Sync for ReftableTransactionUpdate
impl Unpin for ReftableTransactionUpdate
impl UnsafeUnpin for ReftableTransactionUpdate
impl UnwindSafe for ReftableTransactionUpdate
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