[][src]Struct rustsec::report::DatabaseInfo

pub struct DatabaseInfo {
    pub advisory_count: usize,
    pub last_commit: String,
    pub last_updated: DateTime<Utc>,
}

Information about the advisory database

Fields

advisory_count: usize

Number of advisories in the database

last_commit: String

Git commit hash for the last commit to the database

last_updated: DateTime<Utc>

Date when the advisory database was last committed to

Methods

impl DatabaseInfo[src]

pub fn new(db: &Database) -> Self[src]

Create database information from the advisory db

Trait Implementations

impl Clone for DatabaseInfo[src]

impl Debug for DatabaseInfo[src]

impl Serialize for DatabaseInfo[src]

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

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> BorrowMut<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]