pub struct RefUpdate {
pub remote_ref: String,
pub local_ref: Option<String>,
pub old_oid: Option<ObjectId>,
pub new_oid: Option<ObjectId>,
pub mode: UpdateMode,
pub note: Option<String>,
}Expand description
The resolved outcome of one reference during a fetch.
Fields§
§remote_ref: StringThe remote-side ref name (e.g. refs/heads/main).
local_ref: Option<String>The local-side ref name written, if any (e.g. refs/remotes/origin/main).
old_oid: Option<ObjectId>Previous value of the local ref (None when newly created).
new_oid: Option<ObjectId>New value written to the local ref (None for deletions / unborn).
mode: UpdateModeHow the update resolved.
note: Option<String>Optional human-readable note (reason text), for embedder display.
Trait Implementations§
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