pub struct GitCheckpoint {
pub head_commit: String,
pub staged_files: Vec<String>,
pub branch: String,
}Expand description
Snapshot of git state for restoration.
Fields§
§head_commit: StringHEAD commit hash.
staged_files: Vec<String>List of staged files.
branch: StringCurrent branch name.
Implementations§
Trait Implementations§
Source§impl Clone for GitCheckpoint
impl Clone for GitCheckpoint
Source§fn clone(&self) -> GitCheckpoint
fn clone(&self) -> GitCheckpoint
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 GitCheckpoint
impl Debug for GitCheckpoint
Source§impl<'de> Deserialize<'de> for GitCheckpoint
impl<'de> Deserialize<'de> for GitCheckpoint
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GitCheckpoint
impl RefUnwindSafe for GitCheckpoint
impl Send for GitCheckpoint
impl Sync for GitCheckpoint
impl Unpin for GitCheckpoint
impl UnsafeUnpin for GitCheckpoint
impl UnwindSafe for GitCheckpoint
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