pub struct CvssDetails(/* private fields */);Implementations§
Source§impl CvssDetails
impl CvssDetails
Sourcepub fn get_prime(&self) -> String
pub fn get_prime(&self) -> String
For the max version of CVSS, get the max score with full display formatting
Sourcepub fn get_max_score(&self) -> Option<f64>
pub fn get_max_score(&self) -> Option<f64>
Get the maximum CVSS score among all details
Sourcepub fn has_score_gte(&self, threshold: f64) -> bool
pub fn has_score_gte(&self, threshold: f64) -> bool
Check if any CVSS detail has a score >= threshold
Trait Implementations§
Source§impl Clone for CvssDetails
impl Clone for CvssDetails
Source§fn clone(&self) -> CvssDetails
fn clone(&self) -> CvssDetails
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 CvssDetails
impl Debug for CvssDetails
Source§impl<'de> Deserialize<'de> for CvssDetails
impl<'de> Deserialize<'de> for CvssDetails
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for CvssDetails
impl Display for CvssDetails
Auto Trait Implementations§
impl Freeze for CvssDetails
impl RefUnwindSafe for CvssDetails
impl Send for CvssDetails
impl Sync for CvssDetails
impl Unpin for CvssDetails
impl UnsafeUnpin for CvssDetails
impl UnwindSafe for CvssDetails
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more