#[non_exhaustive]pub enum CommandPreviewWarning {
LocalMetadata,
LocalRewrite,
DestructiveLocal,
NetworkWrite,
ExternalCommand,
IgnoresWorkingCopy,
AtOperation(String),
DoesNotIntegrateOperation,
IgnoresImmutableCommits,
}Expand description
Warning shown beside a command preview when flags or safety class deserve attention.
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.
LocalMetadata
The command changes repository-local metadata.
LocalRewrite
The command rewrites local history.
DestructiveLocal
The command is destructive in the local repository.
NetworkWrite
The command writes to a network service or remote.
ExternalCommand
The command launches an external tool.
IgnoresWorkingCopy
The command ignores the current working-copy snapshot.
AtOperation(String)
The command inspects or operates at a specific operation.
DoesNotIntegrateOperation
The command creates an operation but does not integrate it.
IgnoresImmutableCommits
The command may rewrite immutable commits.
Trait Implementations§
Source§impl Clone for CommandPreviewWarning
impl Clone for CommandPreviewWarning
Source§fn clone(&self) -> CommandPreviewWarning
fn clone(&self) -> CommandPreviewWarning
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 CommandPreviewWarning
impl Debug for CommandPreviewWarning
impl Eq for CommandPreviewWarning
Source§impl PartialEq for CommandPreviewWarning
impl PartialEq for CommandPreviewWarning
Source§fn eq(&self, other: &CommandPreviewWarning) -> bool
fn eq(&self, other: &CommandPreviewWarning) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CommandPreviewWarning
Auto Trait Implementations§
impl Freeze for CommandPreviewWarning
impl RefUnwindSafe for CommandPreviewWarning
impl Send for CommandPreviewWarning
impl Sync for CommandPreviewWarning
impl Unpin for CommandPreviewWarning
impl UnsafeUnpin for CommandPreviewWarning
impl UnwindSafe for CommandPreviewWarning
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