pub enum CvssVersion {
V2,
V3_0,
V3_1,
V4_0,
}Expand description
CVSS version labels.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for CvssVersion
impl Clone for CvssVersion
Source§fn clone(&self) -> CvssVersion
fn clone(&self) -> CvssVersion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CvssVersion
impl Debug for CvssVersion
Source§impl Display for CvssVersion
impl Display for CvssVersion
Source§impl FromStr for CvssVersion
impl FromStr for CvssVersion
Source§type Err = CvssParseError
type Err = CvssParseError
The associated error which can be returned from parsing.
Source§fn from_str(input: &str) -> Result<CvssVersion, <CvssVersion as FromStr>::Err>
fn from_str(input: &str) -> Result<CvssVersion, <CvssVersion as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for CvssVersion
impl Hash for CvssVersion
Source§impl Ord for CvssVersion
impl Ord for CvssVersion
Source§fn cmp(&self, other: &CvssVersion) -> Ordering
fn cmp(&self, other: &CvssVersion) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CvssVersion
impl PartialEq for CvssVersion
Source§fn eq(&self, other: &CvssVersion) -> bool
fn eq(&self, other: &CvssVersion) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for CvssVersion
impl PartialOrd for CvssVersion
impl Copy for CvssVersion
impl Eq for CvssVersion
impl StructuralPartialEq for CvssVersion
Auto Trait Implementations§
impl Freeze for CvssVersion
impl RefUnwindSafe for CvssVersion
impl Send for CvssVersion
impl Sync for CvssVersion
impl Unpin for CvssVersion
impl UnsafeUnpin for CvssVersion
impl UnwindSafe for CvssVersion
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more