pub struct RefUpdate {
pub name: String,
pub new_value: Option<RawRef>,
pub expected: Expected,
pub reflog: Option<ReflogUpdate>,
pub flags: RefUpdateFlags,
}Expand description
One ref create, update, delete, or reflog-only touch in a transaction.
Fields§
§name: StringFull ref name.
new_value: Option<RawRef>New stored value, or None to delete the ref.
expected: ExpectedRequired current state for compare-and-swap.
reflog: Option<ReflogUpdate>Reflog line to append when the update commits (None skips reflog).
flags: RefUpdateFlagsUpdate modifiers.
Trait Implementations§
impl Eq for RefUpdate
impl StructuralPartialEq for RefUpdate
Auto Trait Implementations§
impl Freeze for RefUpdate
impl RefUnwindSafe for RefUpdate
impl Send for RefUpdate
impl Sync for RefUpdate
impl Unpin for RefUpdate
impl UnsafeUnpin for RefUpdate
impl UnwindSafe for RefUpdate
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