[][src]Struct cargo_audit::config::DatabaseConfig

pub struct DatabaseConfig {
    pub path: Option<PathBuf>,
    pub url: Option<String>,
    pub fetch: bool,
    pub stale: bool,
}

Advisory Database configuration.

The advisory database is stored in a Git repository. This section of the configuration stores settings related to it.

Fields

path: Option<PathBuf>

Path to the local copy of advisory database's git repo (default: ~/.cargo/advisory-db)

url: Option<String>

URL to the advisory database's git repo (default: https://github.com/RustSec/advisory-db)

fetch: bool

Perform a git fetch before auditing (default: true)

stale: bool

Allow a stale advisory database? (i.e. one which hasn't been updated in 90 days)

Trait Implementations

impl Clone for DatabaseConfig[src]

impl Default for DatabaseConfig[src]

impl Debug for DatabaseConfig[src]

impl Config for DatabaseConfig[src]

impl Serialize for DatabaseConfig[src]

impl<'de> Deserialize<'de> for DatabaseConfig[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> AsAny for T where
    T: Any
[src]

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