Struct deno_npm::NpmResolutionPackage
source · pub struct NpmResolutionPackage {
pub id: NpmPackageId,
pub copy_index: u8,
pub system: NpmResolutionPackageSystemInfo,
pub dist: NpmPackageVersionDistInfo,
pub dependencies: HashMap<String, NpmPackageId>,
pub optional_dependencies: HashSet<String>,
}
Fields§
§id: NpmPackageId
§copy_index: u8
The peer dependency resolution can differ for the same package (name and version) depending on where it is in the resolution tree. This copy index indicates which copy of the package this is.
system: NpmResolutionPackageSystemInfo
§dist: NpmPackageVersionDistInfo
§dependencies: HashMap<String, NpmPackageId>
Key is what the package refers to the other package as, which could be different from the package name.
optional_dependencies: HashSet<String>
Implementations§
source§impl NpmResolutionPackage
impl NpmResolutionPackage
pub fn as_serialized(&self) -> SerializedNpmResolutionSnapshotPackage
pub fn get_package_cache_folder_id(&self) -> NpmPackageCacheFolderId
Trait Implementations§
source§impl Clone for NpmResolutionPackage
impl Clone for NpmResolutionPackage
source§fn clone(&self) -> NpmResolutionPackage
fn clone(&self) -> NpmResolutionPackage
Returns a copy 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 NpmResolutionPackage
impl Debug for NpmResolutionPackage
source§impl<'de> Deserialize<'de> for NpmResolutionPackage
impl<'de> Deserialize<'de> for NpmResolutionPackage
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<NpmResolutionPackage> for NpmResolutionPackage
impl PartialEq<NpmResolutionPackage> for NpmResolutionPackage
source§fn eq(&self, other: &NpmResolutionPackage) -> bool
fn eq(&self, other: &NpmResolutionPackage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for NpmResolutionPackage
impl Serialize for NpmResolutionPackage
impl Eq for NpmResolutionPackage
impl StructuralEq for NpmResolutionPackage
impl StructuralPartialEq for NpmResolutionPackage
Auto Trait Implementations§
impl RefUnwindSafe for NpmResolutionPackage
impl Send for NpmResolutionPackage
impl Sync for NpmResolutionPackage
impl Unpin for NpmResolutionPackage
impl UnwindSafe for NpmResolutionPackage
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