pub enum DependencyLocation {
Dependencies,
DevDependencies,
OptionalDependencies,
}Expand description
Where in package.json a dependency is listed.
§Examples
use fallow_types::results::DependencyLocation;
// All three variants are constructible
let loc = DependencyLocation::Dependencies;
let dev = DependencyLocation::DevDependencies;
let opt = DependencyLocation::OptionalDependencies;
// Debug output includes the variant name
assert!(format!("{loc:?}").contains("Dependencies"));
assert!(format!("{dev:?}").contains("DevDependencies"));
assert!(format!("{opt:?}").contains("OptionalDependencies"));Variants§
Dependencies
Listed in dependencies.
DevDependencies
Listed in devDependencies.
OptionalDependencies
Listed in optionalDependencies.
Trait Implementations§
Source§impl Clone for DependencyLocation
impl Clone for DependencyLocation
Source§impl Debug for DependencyLocation
impl Debug for DependencyLocation
Source§impl<'de> Deserialize<'de> for DependencyLocation
impl<'de> Deserialize<'de> for DependencyLocation
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
Auto Trait Implementations§
impl Freeze for DependencyLocation
impl RefUnwindSafe for DependencyLocation
impl Send for DependencyLocation
impl Sync for DependencyLocation
impl Unpin for DependencyLocation
impl UnsafeUnpin for DependencyLocation
impl UnwindSafe for DependencyLocation
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