pub enum AttackComplexity {
Low,
High,
}Expand description
The Attack Complexity field as defined by the CVSS specification.
Variants§
Low
Low (“AC:L”) value for the Attack Complexity field.
High
High (“AC:H”) value for the Attack Complexity field.
Implementations§
Source§impl AttackComplexity
impl AttackComplexity
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 AttackComplexity
impl Clone for AttackComplexity
Source§fn clone(&self) -> AttackComplexity
fn clone(&self) -> AttackComplexity
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 AttackComplexity
impl Debug for AttackComplexity
Source§impl<'de> Deserialize<'de> for AttackComplexity
impl<'de> Deserialize<'de> for AttackComplexity
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 AttackComplexity
impl Display for AttackComplexity
Source§impl PartialEq for AttackComplexity
impl PartialEq for AttackComplexity
Source§impl Serialize for AttackComplexity
impl Serialize for AttackComplexity
impl Copy for AttackComplexity
impl StructuralPartialEq for AttackComplexity
Auto Trait Implementations§
impl Freeze for AttackComplexity
impl RefUnwindSafe for AttackComplexity
impl Send for AttackComplexity
impl Sync for AttackComplexity
impl Unpin for AttackComplexity
impl UnsafeUnpin for AttackComplexity
impl UnwindSafe for AttackComplexity
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