pub struct StashRestoreOutput {
pub restored_sha: String,
pub index: usize,
pub message: String,
}Fields§
§restored_sha: StringFull 40-char sha of the stash commit now back on refs/stash.
index: usizeAlways 0 — git stash store pushes onto the top of the list, so the
restored entry is stash@{0} and every pre-existing index shifts by 1.
message: StringReflog message the restored entry carries (the caller’s message, or
the stash commit’s own summary when none was given).
Trait Implementations§
Source§impl Clone for StashRestoreOutput
impl Clone for StashRestoreOutput
Source§fn clone(&self) -> StashRestoreOutput
fn clone(&self) -> StashRestoreOutput
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 StashRestoreOutput
impl Debug for StashRestoreOutput
Source§impl<'de> Deserialize<'de> for StashRestoreOutput
impl<'de> Deserialize<'de> for StashRestoreOutput
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 StashRestoreOutput
Source§impl PartialEq for StashRestoreOutput
impl PartialEq for StashRestoreOutput
Source§impl Serialize for StashRestoreOutput
impl Serialize for StashRestoreOutput
impl StructuralPartialEq for StashRestoreOutput
Auto Trait Implementations§
impl Freeze for StashRestoreOutput
impl RefUnwindSafe for StashRestoreOutput
impl Send for StashRestoreOutput
impl Sync for StashRestoreOutput
impl Unpin for StashRestoreOutput
impl UnsafeUnpin for StashRestoreOutput
impl UnwindSafe for StashRestoreOutput
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.