pub struct PushResult {
pub commits_pushed: usize,
pub tags_pushed: usize,
pub warnings: Vec<String>,
}Expand description
Result of push operation
Fields§
§commits_pushed: usizeNumber of refs (branches/tags) successfully pushed
Note: This counts the number of ref updates, not individual commits. For example, pushing a branch with 5 commits counts as 1 ref update.
Number of tags pushed (conservative estimate)
Note: Returns 1 when --tags is used and push succeeds, or counts
the number of refs/tags/* refspecs provided. Does not parse git output
for exact count due to fragility. Sufficient for most telemetry use cases.
warnings: Vec<String>Any warnings or messages
Trait Implementations§
Source§impl Clone for PushResult
impl Clone for PushResult
Source§fn clone(&self) -> PushResult
fn clone(&self) -> PushResult
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 moreAuto Trait Implementations§
impl Freeze for PushResult
impl RefUnwindSafe for PushResult
impl Send for PushResult
impl Sync for PushResult
impl Unpin for PushResult
impl UnwindSafe for PushResult
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