pub struct ReftableTransactionUpdate {
pub refname: String,
pub value: RefValue,
pub log: Option<LogRecord>,
}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: RefValueNew ref value, or a deletion tombstone.
log: Option<LogRecord>Optional reflog entry to record in the same table and update index.
Trait Implementations§
Source§impl Clone for ReftableTransactionUpdate
impl Clone for ReftableTransactionUpdate
Source§fn clone(&self) -> ReftableTransactionUpdate
fn clone(&self) -> ReftableTransactionUpdate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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