pub struct RefUpdate {
pub name: String,
pub expected: Expected,
pub new: Option<Checksum>,
}Expand description
One ref update of a Commit message.
Fields§
§name: StringThe ref name, as the Hello holds it: NAME or @ID:NAME, and in a
one-way stream also REMOTE:NAME.
expected: ExpectedThe state that the ref must be in before the write.
new: Option<Checksum>The new commit, or None to delete the ref.
Trait Implementations§
impl Eq for RefUpdate
impl StructuralPartialEq for RefUpdate
Auto Trait Implementations§
impl Forget for RefUpdate
impl Freeze for RefUpdate
impl Move 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.