pub enum NpmCommand {
Install,
Ci,
Run,
Test,
Publish,
Pack,
Version,
Audit,
}Expand description
Common npm command labels.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for NpmCommand
impl Clone for NpmCommand
Source§fn clone(&self) -> NpmCommand
fn clone(&self) -> NpmCommand
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 NpmCommand
impl Debug for NpmCommand
Source§impl FromStr for NpmCommand
impl FromStr for NpmCommand
Source§type Err = NpmCommandParseError
type Err = NpmCommandParseError
The associated error which can be returned from parsing.
Source§fn from_str(input: &str) -> Result<NpmCommand, <NpmCommand as FromStr>::Err>
fn from_str(input: &str) -> Result<NpmCommand, <NpmCommand as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for NpmCommand
impl Hash for NpmCommand
Source§impl Ord for NpmCommand
impl Ord for NpmCommand
Source§fn cmp(&self, other: &NpmCommand) -> Ordering
fn cmp(&self, other: &NpmCommand) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for NpmCommand
impl PartialEq for NpmCommand
Source§fn eq(&self, other: &NpmCommand) -> bool
fn eq(&self, other: &NpmCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for NpmCommand
impl PartialOrd for NpmCommand
impl Copy for NpmCommand
impl Eq for NpmCommand
impl StructuralPartialEq for NpmCommand
Auto Trait Implementations§
impl Freeze for NpmCommand
impl RefUnwindSafe for NpmCommand
impl Send for NpmCommand
impl Sync for NpmCommand
impl Unpin for NpmCommand
impl UnsafeUnpin for NpmCommand
impl UnwindSafe for NpmCommand
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