[−][src]Struct cvss::v3::score::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.
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]
fn partial_cmp(&self, other: &Score) -> Option<Ordering>
[src]
fn lt(&self, other: &Score) -> bool
[src]
fn le(&self, other: &Score) -> bool
[src]
fn gt(&self, other: &Score) -> bool
[src]
fn ge(&self, other: &Score) -> bool
[src]
impl StructuralPartialEq for Score
[src]
Auto Trait Implementations
impl RefUnwindSafe for Score
[src]
impl Send for Score
[src]
impl Sync for Score
[src]
impl Unpin for Score
[src]
impl UnwindSafe for Score
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,