pub struct RefUpdatePlan {
pub name: String,
pub old: Option<ObjectId>,
pub new: ObjectId,
}Expand description
One reference this fetch would move, and what it would move it from.
A plan, not an action. Nothing in this crate applies it; see the module doc for why the caller does.
Fields§
§name: StringThe full reference name, as the remote advertised it.
old: Option<ObjectId>What the local store holds for that name now, or None if it holds
nothing — a new branch, or a first mirror.
new: ObjectIdWhat the remote holds for it.
Trait Implementations§
Source§impl Clone for RefUpdatePlan
impl Clone for RefUpdatePlan
Source§impl Debug for RefUpdatePlan
impl Debug for RefUpdatePlan
impl Eq for RefUpdatePlan
Source§impl PartialEq for RefUpdatePlan
impl PartialEq for RefUpdatePlan
impl StructuralPartialEq for RefUpdatePlan
Auto Trait Implementations§
impl Freeze for RefUpdatePlan
impl RefUnwindSafe for RefUpdatePlan
impl Send for RefUpdatePlan
impl Sync for RefUpdatePlan
impl Unpin for RefUpdatePlan
impl UnsafeUnpin for RefUpdatePlan
impl UnwindSafe for RefUpdatePlan
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