pub struct PushOutput {
pub success: bool,
pub non_fast_forward: bool,
pub up_to_date: bool,
pub remote_name: String,
pub remote_ref: String,
pub commit_oid: String,
}Expand description
Result of a single push attempt.
Contains all the information needed by a CLI or other consumer to report what happened, without performing any I/O itself.
Fields§
§success: boolWhether the push succeeded (or was already up-to-date).
non_fast_forward: boolWhether the push was rejected as non-fast-forward.
up_to_date: boolWhether local and remote were already in sync (nothing to push).
remote_name: StringThe resolved remote name that was pushed to.
remote_ref: StringThe remote refspec that was pushed to (e.g. refs/meta/main).
commit_oid: StringThe commit OID that was pushed (or attempted).
Trait Implementations§
Source§impl Clone for PushOutput
impl Clone for PushOutput
Source§fn clone(&self) -> PushOutput
fn clone(&self) -> PushOutput
Returns a duplicate of the value. Read more
1.0.0 · 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 PushOutput
impl Debug for PushOutput
Source§impl PartialEq for PushOutput
impl PartialEq for PushOutput
impl Eq for PushOutput
impl StructuralPartialEq for PushOutput
Auto Trait Implementations§
impl Freeze for PushOutput
impl RefUnwindSafe for PushOutput
impl Send for PushOutput
impl Sync for PushOutput
impl Unpin for PushOutput
impl UnsafeUnpin for PushOutput
impl UnwindSafe for PushOutput
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.