pub enum Ecosystem {
Npm,
Pypi,
Packagist,
Go,
Maven,
CratesIo,
}Expand description
Package ecosystem, serialized as the OSV ecosystem string.
Variants§
Npm
npm, pnpm, and yarn.
Pypi
Python packages on PyPI.
Packagist
PHP packages on Packagist.
Go
Go modules.
Maven
Maven artifacts (groupId:artifactId).
CratesIo
Rust crates from crates.io.
Implementations§
Source§impl Ecosystem
impl Ecosystem
Sourcepub fn as_osv_str(self) -> &'static str
pub fn as_osv_str(self) -> &'static str
OSV ecosystem string (npm, PyPI, Packagist, Go, Maven, crates.io).
Sourcepub fn parse_config_name(name: &str) -> Result<Self, CoreError>
pub fn parse_config_name(name: &str) -> Result<Self, CoreError>
Parse a config or CLI ecosystem name.
Names are case-insensitive. npm covers npm, pnpm, and yarn.
composer is Packagist. cargo is crates.io.
Trait Implementations§
impl Copy for Ecosystem
Source§impl<'de> Deserialize<'de> for Ecosystem
impl<'de> Deserialize<'de> for Ecosystem
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 Ecosystem
Source§impl Ord for Ecosystem
impl Ord for Ecosystem
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Ecosystem
impl PartialOrd for Ecosystem
impl StructuralPartialEq for Ecosystem
Auto Trait Implementations§
impl Freeze for Ecosystem
impl RefUnwindSafe for Ecosystem
impl Send for Ecosystem
impl Sync for Ecosystem
impl Unpin for Ecosystem
impl UnsafeUnpin for Ecosystem
impl UnwindSafe for Ecosystem
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.