#[non_exhaustive]pub enum StashPushValidationError {
InvalidSignature(SignatureError),
StagedWithUntracked,
StagedWithSelection,
KeepIndexWithSelection,
UntrackedWithSelection,
StagedWorktreeDirty {
path: String,
},
DryRunUsePreview,
}Expand description
Incompatible super::stash::StashPushOptions flag combinations.
Returned from crate::stash::StashPushOptions::validate before any repository I/O.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidSignature(SignatureError)
Author or committer line on crate::stash::StashPushOptions::identity is invalid.
StagedWithUntracked
--staged with --include-untracked.
StagedWithSelection
--staged with --hunks or --lines.
KeepIndexWithSelection
--keep-index with --hunks or --lines.
UntrackedWithSelection
--include-untracked with --hunks or --lines.
StagedWorktreeDirty
--staged on a path that also has unstaged worktree edits.
DryRunUsePreview
crate::stash::StashPushOptions::dry_run on push; use preview instead.
Trait Implementations§
Source§impl Clone for StashPushValidationError
impl Clone for StashPushValidationError
Source§impl Debug for StashPushValidationError
impl Debug for StashPushValidationError
Source§impl Display for StashPushValidationError
impl Display for StashPushValidationError
impl Eq for StashPushValidationError
Source§impl Error for StashPushValidationError
impl Error for StashPushValidationError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<SignatureError> for StashPushValidationError
impl From<SignatureError> for StashPushValidationError
Source§fn from(source: SignatureError) -> Self
fn from(source: SignatureError) -> Self
Converts to this type from the input type.
Source§impl From<StashPushValidationError> for StashError
impl From<StashPushValidationError> for StashError
Source§fn from(source: StashPushValidationError) -> Self
fn from(source: StashPushValidationError) -> Self
Converts to this type from the input type.
Source§impl From<StashPushValidationError> for Error
impl From<StashPushValidationError> for Error
Source§fn from(err: StashPushValidationError) -> Self
fn from(err: StashPushValidationError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for StashPushValidationError
impl PartialEq for StashPushValidationError
impl StructuralPartialEq for StashPushValidationError
Auto Trait Implementations§
impl Forget for StashPushValidationError
impl Freeze for StashPushValidationError
impl RefUnwindSafe for StashPushValidationError
impl Send for StashPushValidationError
impl Sync for StashPushValidationError
impl Unpin for StashPushValidationError
impl UnsafeUnpin for StashPushValidationError
impl UnwindSafe for StashPushValidationError
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,
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§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.