[][src]Struct rustsec::report::Settings

pub struct Settings {
    pub target_arch: Option<Arch>,
    pub target_os: Option<OS>,
    pub severity: Option<Severity>,
    pub ignore: Vec<Id>,
    pub informational_warnings: Vec<Informational>,
}

Options to use when generating the report

Fields

target_arch: Option<Arch>

CPU architecture

target_os: Option<OS>

Operating system

severity: Option<Severity>

Severity threshold to alert at

ignore: Vec<Id>

List of advisory IDs to ignore

informational_warnings: Vec<Informational>

Types of informational advisories to generate warnings for

Methods

impl Settings[src]

pub fn query(&self) -> Query[src]

Get a query which corresponds to the configured report settings. Note that queries can't filter ignored advisories, so this happens in a separate pass

Trait Implementations

impl Clone for Settings[src]

impl Default for Settings[src]

impl Debug for Settings[src]

impl Serialize for Settings[src]

impl<'de> Deserialize<'de> for Settings[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]