pub enum Update<'a> {
Direct {
name: Namespaced<'a>,
target: Oid,
no_ff: Policy,
},
Prune {
name: Namespaced<'a>,
prev: Either<Oid, Qualified<'a>>,
},
}
Expand description
An update that can be applied to a Git repository.
Variants§
Direct
Update a direct reference, i.e. a reference that points to an object.
Fields
§
name: Namespaced<'a>
The name of the reference that is being updated.
Prune
Delete a reference.
Implementations§
Source§impl<'a> Update<'a>
impl<'a> Update<'a>
pub fn refname(&self) -> &Namespaced<'a>
pub fn into_owned<'b>(self) -> Update<'b>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Update<'a>
impl<'a> RefUnwindSafe for Update<'a>
impl<'a> Send for Update<'a>
impl<'a> Sync for Update<'a>
impl<'a> Unpin for Update<'a>
impl<'a> UnwindSafe for Update<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more