pub struct AutoCommitResult {
pub committed: bool,
pub commit_sha: Option<String>,
pub files_staged: usize,
}Expand description
Result of an auto-commit operation.
Fields§
§committed: boolWhether a commit was made.
commit_sha: Option<String>The commit SHA if a commit was made.
files_staged: usizeNumber of files that were staged.
Implementations§
Trait Implementations§
Source§impl Clone for AutoCommitResult
impl Clone for AutoCommitResult
Source§fn clone(&self) -> AutoCommitResult
fn clone(&self) -> AutoCommitResult
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 AutoCommitResult
impl RefUnwindSafe for AutoCommitResult
impl Send for AutoCommitResult
impl Sync for AutoCommitResult
impl Unpin for AutoCommitResult
impl UnsafeUnpin for AutoCommitResult
impl UnwindSafe for AutoCommitResult
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