pub struct Component {
pub name: String,
pub version: String,
pub purl: String,
pub license: Option<String>,
pub resolved: Option<String>,
pub integrity: Option<String>,
}Expand description
One package in the bill of materials, distilled from a
LockedPackage.
Fields§
§name: StringPackage name (scoped names keep their @scope/ prefix).
version: StringExact version.
purl: StringPackage URL, e.g. pkg:npm/lit@3.3.3 or pkg:npm/%40lit/context@1.1.6.
license: Option<String>Declared SPDX license string, when the lockfile records one.
resolved: Option<String>Resolved download location (the registry tarball URL), when present.
integrity: Option<String>sha512-<base64> Subresource-Integrity, when present.
Trait Implementations§
impl Eq for Component
impl StructuralPartialEq for Component
Auto Trait Implementations§
impl Freeze for Component
impl RefUnwindSafe for Component
impl Send for Component
impl Sync for Component
impl Unpin for Component
impl UnsafeUnpin for Component
impl UnwindSafe for Component
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.