pub struct PrePushRef {
pub local_ref: Option<String>,
pub local_oid: Option<ObjectId>,
pub remote_ref: String,
pub remote_oid: Option<ObjectId>,
}Expand description
One ref update a push is about to make, as reported to the pre-push hook.
Fields§
§local_ref: Option<String>Local source as named by the push (refs/heads/main, HEAD, …). None when the
source was a bare object id, or for a deletion.
local_oid: Option<ObjectId>Object the remote ref will point at; None for a deletion.
remote_ref: StringDestination ref on the remote (refs/heads/main).
remote_oid: Option<ObjectId>Current value of Self::remote_ref on the remote; None when it does not exist.
Trait Implementations§
Source§impl Clone for PrePushRef
impl Clone for PrePushRef
Source§impl Debug for PrePushRef
impl Debug for PrePushRef
impl Eq for PrePushRef
Source§impl PartialEq for PrePushRef
impl PartialEq for PrePushRef
impl StructuralPartialEq for PrePushRef
Auto Trait Implementations§
impl Freeze for PrePushRef
impl RefUnwindSafe for PrePushRef
impl Send for PrePushRef
impl Sync for PrePushRef
impl Unpin for PrePushRef
impl UnsafeUnpin for PrePushRef
impl UnwindSafe for PrePushRef
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.