pub struct StashEntry {
pub index: usize,
pub sha: String,
pub message: String,
pub has_untracked: bool,
}Expand description
One entry from git stash list.
index is the position in the stash reflog (stash@{index}) at the time
of the call — it shifts whenever an entry is dropped, which is why every
mutating stash method accepts an expected_sha to pin the identity.
Fields§
§index: usizePosition in the stash reflog (stash@{index}).
sha: StringStash commit sha (full 40-char hex). Stable across index shifts.
message: StringReflog message (e.g. "WIP on main: 1a2b3c4 subject").
has_untracked: booltrue when the entry carries untracked files (git stash push -u),
detected via the stash commit’s third parent.
Trait Implementations§
Source§impl Clone for StashEntry
impl Clone for StashEntry
Source§fn clone(&self) -> StashEntry
fn clone(&self) -> StashEntry
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 StashEntry
impl Debug for StashEntry
Source§impl<'de> Deserialize<'de> for StashEntry
impl<'de> Deserialize<'de> for StashEntry
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
impl Eq for StashEntry
Source§impl PartialEq for StashEntry
impl PartialEq for StashEntry
Source§impl Serialize for StashEntry
impl Serialize for StashEntry
impl StructuralPartialEq for StashEntry
Auto Trait Implementations§
impl Freeze for StashEntry
impl RefUnwindSafe for StashEntry
impl Send for StashEntry
impl Sync for StashEntry
impl Unpin for StashEntry
impl UnsafeUnpin for StashEntry
impl UnwindSafe for StashEntry
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.