Struct rustsec::warning::Warning[][src]

pub struct Warning {
    pub kind: Kind,
    pub package: Package,
    pub advisory: Option<Metadata>,
    pub versions: Option<Versions>,
}

Warnings sourced from the Advisory DB

Fields

kind: Kind

Kind of warning

package: Package

Name of the dependent package

advisory: Option<Metadata>

Source advisory

versions: Option<Versions>

Versions impacted by this warning

Implementations

impl Warning[src]

pub fn new(
    kind: Kind,
    package: &Package,
    advisory: Option<Metadata>,
    versions: Option<Versions>
) -> Self
[src]

Create Warning of the given kind

pub fn is_notice(&self) -> bool[src]

Is this a warning a notice about a crate?

pub fn is_unmaintained(&self) -> bool[src]

Is this a warning about an unmaintained crate?

pub fn is_unsound(&self) -> bool[src]

Is this a warning about an unsound crate?

pub fn is_yanked(&self) -> bool[src]

Is this a warning about a yanked crate?

Trait Implementations

impl Clone for Warning[src]

impl Debug for Warning[src]

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

impl Serialize for Warning[src]

Auto Trait Implementations

impl RefUnwindSafe for Warning

impl Send for Warning

impl Sync for Warning

impl Unpin for Warning

impl UnwindSafe for Warning

Blanket Implementations

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

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

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

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

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

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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.