pub struct RefCommand {
pub refname: String,
pub old: Option<ObjectId>,
pub new: Option<ObjectId>,
}Expand description
One <old> <new> <ref> update requested by a pushing client.
Fields§
§refname: StringFull name of the ref to change, such as refs/heads/main.
old: Option<ObjectId>Value the client expects the ref to have now; None to create it.
new: Option<ObjectId>Value the client asks for; None to delete the ref.
Trait Implementations§
Source§impl Clone for RefCommand
impl Clone for RefCommand
Source§impl Debug for RefCommand
impl Debug for RefCommand
impl Eq for RefCommand
Source§impl PartialEq for RefCommand
impl PartialEq for RefCommand
impl StructuralPartialEq for RefCommand
Auto Trait Implementations§
impl Freeze for RefCommand
impl RefUnwindSafe for RefCommand
impl Send for RefCommand
impl Sync for RefCommand
impl Unpin for RefCommand
impl UnsafeUnpin for RefCommand
impl UnwindSafe for RefCommand
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§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.