pub struct RefBatchItem {
pub name: String,
pub new_oid: Option<ObjectId>,
}Expand description
One ref create/update/delete in a batch transaction (see crate::gc::update_refs).
Fields§
§name: StringFull ref name (e.g. refs/heads/main).
new_oid: Option<ObjectId>New oid to write, or None to delete the ref.
Trait Implementations§
Source§impl Clone for RefBatchItem
impl Clone for RefBatchItem
Auto Trait Implementations§
impl Freeze for RefBatchItem
impl RefUnwindSafe for RefBatchItem
impl Send for RefBatchItem
impl Sync for RefBatchItem
impl Unpin for RefBatchItem
impl UnsafeUnpin for RefBatchItem
impl UnwindSafe for RefBatchItem
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