pub struct Pinned {
pub path: String,
pub name: String,
pub version: String,
pub tarball: String,
pub integrity: String,
}Expand description
One package of an installed npm tree, as a lock pins it.
Fields§
§path: StringThe package’s folder below the install root: node_modules/<name>,
repeated for each level of nesting, with / separators.
name: StringThe name in the package’s own manifest, which for an alias differs from its folder’s.
version: StringThe installed version.
tarball: StringThe URL of its tarball.
integrity: StringThe sha512-<base64> digest of its tarball, as Subresource Integrity
writes it.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Pinned
impl<'de> Deserialize<'de> for Pinned
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
impl Eq for Pinned
impl StructuralPartialEq for Pinned
Auto Trait Implementations§
impl Freeze for Pinned
impl RefUnwindSafe for Pinned
impl Send for Pinned
impl Sync for Pinned
impl Unpin for Pinned
impl UnsafeUnpin for Pinned
impl UnwindSafe for Pinned
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.