pub enum PackageImportMethod {
Auto,
Hardlink,
Clone,
CloneOrCopy,
Copy,
}Expand description
Controls the way packages are imported from the store (if you want to disable symlinks inside node_modules, then you need to change the nodeLinker setting, not this one). See more: https://pnpm.io/settings#packageimportmethod
Variants§
Auto
Try to clone packages from the store. If cloning is not supported then hardlink packages from the store. If neither cloning nor linking is possible, fall back to copying.
Hardlink
Hard link packages from the store.
Clone
Clone (AKA copy-on-write or reference link) packages from the store.
CloneOrCopy
Try to clone packages from the store. If cloning is not supported then fall back to copying.
Copy
Copy packages from the store.
Trait Implementations§
Source§impl Clone for PackageImportMethod
impl Clone for PackageImportMethod
Source§fn clone(&self) -> PackageImportMethod
fn clone(&self) -> PackageImportMethod
Returns a duplicate of the value. Read more
1.0.0 · 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 PackageImportMethod
impl Debug for PackageImportMethod
Source§impl<'de> Deserialize<'de> for PackageImportMethod
impl<'de> Deserialize<'de> for PackageImportMethod
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
Source§impl PartialEq for PackageImportMethod
impl PartialEq for PackageImportMethod
Source§impl Serialize for PackageImportMethod
impl Serialize for PackageImportMethod
impl Copy for PackageImportMethod
impl Eq for PackageImportMethod
impl StructuralPartialEq for PackageImportMethod
Auto Trait Implementations§
impl Freeze for PackageImportMethod
impl RefUnwindSafe for PackageImportMethod
impl Send for PackageImportMethod
impl Sync for PackageImportMethod
impl Unpin for PackageImportMethod
impl UnsafeUnpin for PackageImportMethod
impl UnwindSafe for PackageImportMethod
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.