pub struct PushStatusReport {
pub refs: Vec<PushReportRef>,
}Expand description
The full result of a push as git’s transport layer models it: every ref’s
classified status, ready to be rendered into the “To pull-before-push advice.
Fields§
§refs: Vec<PushReportRef>Every requested ref, in planning order.
Implementations§
Source§impl PushStatusReport
impl PushStatusReport
Sourcepub fn had_errors(&self) -> bool
pub fn had_errors(&self) -> bool
True when any ref was rejected (git’s overall push error flag).
Sourcepub fn refs_pushed(&self) -> bool
pub fn refs_pushed(&self) -> bool
True when at least one ref was actually updated (git’s
transport_refs_pushed): used to print “Everything up-to-date”.
Trait Implementations§
Source§impl Clone for PushStatusReport
impl Clone for PushStatusReport
Source§fn clone(&self) -> PushStatusReport
fn clone(&self) -> PushStatusReport
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 PushStatusReport
impl Debug for PushStatusReport
Source§impl Default for PushStatusReport
impl Default for PushStatusReport
Source§fn default() -> PushStatusReport
fn default() -> PushStatusReport
Returns the “default value” for a type. Read more
impl Eq for PushStatusReport
Source§impl PartialEq for PushStatusReport
impl PartialEq for PushStatusReport
Source§fn eq(&self, other: &PushStatusReport) -> bool
fn eq(&self, other: &PushStatusReport) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PushStatusReport
Auto Trait Implementations§
impl Freeze for PushStatusReport
impl RefUnwindSafe for PushStatusReport
impl Send for PushStatusReport
impl Sync for PushStatusReport
impl Unpin for PushStatusReport
impl UnsafeUnpin for PushStatusReport
impl UnwindSafe for PushStatusReport
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