[][src]Trait cvss::v3::metric::Metric

pub trait Metric: Copy + Clone + Debug + Display + Eq + FromStr + Ord {
    const NAME: &'static str;

    fn score(self) -> f64;
fn as_str(self) -> &'static str; }

Trait for CVSS v3.1 metrics

Associated Constants

const NAME: &'static str

Name of the metric (e.g. A, AC, AV)

Loading content...

Required methods

fn score(self) -> f64

Get CVSS v3.1 score for this metric

fn as_str(self) -> &'static str

Get str describing this metric's value

Loading content...

Implementors

impl Metric for Availability[src]

impl Metric for AttackComplexity[src]

impl Metric for AttackVector[src]

impl Metric for Confidentiality[src]

impl Metric for Integrity[src]

impl Metric for PrivilegesRequired[src]

impl Metric for UserInteraction[src]

Loading content...