[][src]Struct cvss::v3::score::Score

pub struct Score(_);

CVSS V3.1 scores.

Formula described in CVSS v3.1 Specification: Section 5: https://www.first.org/cvss/specification-document#t20

Implementations

impl Score[src]

pub fn new(score: f64) -> Score[src]

Create a new score object

pub fn value(self) -> f64[src]

Get the score as a floating point value

pub fn roundup(self) -> Score[src]

Round the score up to the algorithm described in CVSS v3.1: Appendix A - Floating Point Rounding.

https://www.first.org/cvss/specification-document#t25

pub fn severity(self) -> Severity[src]

Convert the numeric score into a Severity

Trait Implementations

impl Clone for Score[src]

impl Copy for Score[src]

impl Debug for Score[src]

impl Default for Score[src]

impl From<Score> for Severity[src]

impl From<f64> for Score[src]

impl PartialEq<Score> for Score[src]

impl PartialOrd<Score> for Score[src]

impl StructuralPartialEq for Score[src]

Auto Trait Implementations

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> 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, 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.