[][src]Struct rustsec::advisory::id::Id

pub struct Id { /* fields omitted */ }

An identifier for an individual advisory

Methods

impl Id[src]

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

Get a string reference to this advisory ID

pub fn kind(&self) -> Kind[src]

Get the advisory kind for this advisory

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

Is this advisory ID the RUSTSEC-0000-0000 placeholder ID?

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

Is this advisory ID a RUSTSEC advisory?

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

Is this advisory ID a CVE?

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

Is this advisory ID a GHSA?

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

Is this an unknown kind of advisory ID?

pub fn year(&self) -> Option<u32>[src]

Get the year this vulnerability was published (if known)

pub fn url(&self) -> Option<String>[src]

Get a URL to a web page with more information on this advisory

Trait Implementations

impl AsRef<str> for Id[src]

impl Clone for Id[src]

impl Debug for Id[src]

impl Default for Id[src]

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

impl Display for Id[src]

impl Eq for Id[src]

impl FromStr for Id[src]

type Err = Error

The associated error which can be returned from parsing.

fn from_str(advisory_id: &str) -> Result<Self, Error>[src]

Create an Id from the given string

impl Hash for Id[src]

impl Into<String> for Id[src]

impl Ord for Id[src]

impl PartialEq<Id> for Id[src]

impl PartialOrd<Id> for Id[src]

impl Serialize for Id[src]

impl StructuralEq for Id[src]

impl StructuralPartialEq for Id[src]

Auto Trait Implementations

impl RefUnwindSafe for Id

impl Send for Id

impl Sync for Id

impl Unpin for Id

impl UnwindSafe for Id

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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> 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> 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.