pub enum RemediationLevel {
Unavailable,
Workaround,
TemporaryFix,
OfficialFix,
}Expand description
The Remediation Level field as defined by the CVSS specification.
“Not Defined” is considered the same as a missing value. This is done by setting TemporalVector.remediation_level to None.
Variants§
Unavailable (“RL:U”) value for the Remediation Level field.
Workaround
Workaround (“RL:W”) value for the Remediation Level field.
TemporaryFix
Temporary Fix (“RL:T”) value for the Remediation Level field.
OfficialFix
Official Fix (“RL:O”) value for the Remediation Level field.
Implementations§
Source§impl RemediationLevel
impl RemediationLevel
Sourcepub fn numerical_value(&self) -> f64
pub fn numerical_value(&self) -> f64
Provides the numerical value associated with the metric, as specified by the CVSS specification.
In normal usage you should not need to call this yourself.
Trait Implementations§
Source§impl Clone for RemediationLevel
impl Clone for RemediationLevel
Source§fn clone(&self) -> RemediationLevel
fn clone(&self) -> RemediationLevel
Returns a duplicate of the value. Read more
1.0.0 · 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 RemediationLevel
impl Debug for RemediationLevel
Source§impl<'de> Deserialize<'de> for RemediationLevel
impl<'de> Deserialize<'de> for RemediationLevel
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 RemediationLevel
impl Display for RemediationLevel
Source§impl PartialEq for RemediationLevel
impl PartialEq for RemediationLevel
Source§impl Serialize for RemediationLevel
impl Serialize for RemediationLevel
impl Copy for RemediationLevel
impl StructuralPartialEq for RemediationLevel
Auto Trait Implementations§
impl Freeze for RemediationLevel
impl RefUnwindSafe for RemediationLevel
impl Send for RemediationLevel
impl Sync for RemediationLevel
impl Unpin for RemediationLevel
impl UnsafeUnpin for RemediationLevel
impl UnwindSafe for RemediationLevel
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