pub struct PushRefResult {
pub local_ref: Option<String>,
pub remote_ref: String,
pub old_oid: Option<ObjectId>,
pub new_oid: Option<ObjectId>,
pub forced: bool,
pub deletion: bool,
pub status: PushRefStatus,
pub message: Option<String>,
}Expand description
One reference’s resolved push result, ready for display.
Fields§
§local_ref: Option<String>The local ref name (source side), e.g. refs/heads/next. None for deletions.
remote_ref: StringThe remote ref name (destination side), e.g. refs/heads/next.
old_oid: Option<ObjectId>Old value of the remote ref (None/zero for a new ref).
new_oid: Option<ObjectId>New value of the remote ref (None/zero for a deletion).
forced: boolWhether this update was a forced (non-fast-forward but --forced) update.
deletion: boolWhether this update deletes the remote ref.
status: PushRefStatusThe resolved status.
message: Option<String>Extra reason text (used for [remote rejected]).
Trait Implementations§
Source§impl Clone for PushRefResult
impl Clone for PushRefResult
Source§fn clone(&self) -> PushRefResult
fn clone(&self) -> PushRefResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PushRefResult
impl RefUnwindSafe for PushRefResult
impl Send for PushRefResult
impl Sync for PushRefResult
impl Unpin for PushRefResult
impl UnsafeUnpin for PushRefResult
impl UnwindSafe for PushRefResult
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