[][src]Enum rustsec::collection::Collection

pub enum Collection {
    Crates,
    Rust,
}

Collections of packages (crates vs rust).

Advisories are either filed against crates published to https://crates.io or packages provided by the Rust language itself (e.g. std, rustdoc)

Variants

Crates

Crates published through crates.io

Rust

Rust core vulnerabilities

Methods

impl Collection[src]

pub fn as_str(&self) -> &str[src]

Get a str representing the kind of package

Trait Implementations

impl Eq for Collection[src]

impl Clone for Collection[src]

impl PartialOrd<Collection> for Collection[src]

impl PartialEq<Collection> for Collection[src]

impl Ord for Collection[src]

impl Copy for Collection[src]

impl Hash for Collection[src]

impl Debug for Collection[src]

impl Display for Collection[src]

impl FromStr for Collection[src]

type Err = Error

The associated error which can be returned from parsing.

impl Serialize for Collection[src]

impl<'de> Deserialize<'de> for Collection[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<N> NodeTrait for N where
    N: Copy + Ord + Hash
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]