pub struct Package {
pub ecosystem: Ecosystem,
pub manifest: String,
pub package: Option<String>,
pub version: Option<String>,
}Expand description
One detected package manifest and the name/version parsed from it.
Fields§
§ecosystem: EcosystemThe ecosystem this manifest belongs to.
manifest: StringThe manifest filename (e.g. Cargo.toml, package.json).
package: Option<String>The package/crate name, or null when the manifest declares none
(a virtual Cargo.toml workspace, or a go.mod without a module).
version: Option<String>The declared version, or null when absent.
Trait Implementations§
impl Eq for Package
impl StructuralPartialEq for Package
Auto Trait Implementations§
impl Freeze for Package
impl RefUnwindSafe for Package
impl Send for Package
impl Sync for Package
impl Unpin for Package
impl UnsafeUnpin for Package
impl UnwindSafe for Package
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.