pub struct PushReportRef {
pub src: Option<String>,
pub dst: String,
pub old_id: ObjectId,
pub new_id: ObjectId,
pub forced: bool,
pub status: PushRefStatus,
}Expand description
One ref’s line in git’s push status report. Carries everything
print_one_push_report needs: the source (“from”) ref, the destination
(“to”) ref, the old/new object ids, whether the update was forced, whether it
is a deletion, and the classified PushRefStatus.
Fields§
§src: Option<String>The local source ref name (git’s ref->peer_ref->name), e.g.
refs/heads/main. None for a deletion (git prints :dst).
dst: StringThe destination ref name (git’s ref->name), e.g. refs/heads/main.
old_id: ObjectIdThe remote’s old object id for dst (zero for a create).
new_id: ObjectIdThe object id installed at dst (zero for a delete).
forced: boolTrue when the update overwrote a non-fast-forward (git’s forced_update).
status: PushRefStatusThe classified outcome.
Implementations§
Source§impl PushReportRef
impl PushReportRef
Trait Implementations§
Source§impl Clone for PushReportRef
impl Clone for PushReportRef
Source§fn clone(&self) -> PushReportRef
fn clone(&self) -> PushReportRef
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 moreSource§impl Debug for PushReportRef
impl Debug for PushReportRef
impl Eq for PushReportRef
Source§impl PartialEq for PushReportRef
impl PartialEq for PushReportRef
Source§fn eq(&self, other: &PushReportRef) -> bool
fn eq(&self, other: &PushReportRef) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PushReportRef
Auto Trait Implementations§
impl Freeze for PushReportRef
impl RefUnwindSafe for PushReportRef
impl Send for PushReportRef
impl Sync for PushReportRef
impl Unpin for PushReportRef
impl UnsafeUnpin for PushReportRef
impl UnwindSafe for PushReportRef
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