pub struct Vector {
pub minor_version: usize,
/* private fields */
}Available on crate feature
v4 only.Expand description
A CVSS 4.0 vector
Fields§
§minor_version: usizeMinor component of the version
Implementations§
Source§impl Vector
impl Vector
Sourcepub fn score(&self) -> Score
Available on crate feature std only.
pub fn score(&self) -> Score
std only.Get the numerical score of the vector
Sourcepub fn nomenclature(&self) -> Nomenclature
pub fn nomenclature(&self) -> Nomenclature
Get the nomenclature of the vector
This nomenclature should be used wherever a numerical CVSS value is displayed or communicated.
Sourcepub fn metrics(&self) -> impl Iterator<Item = (MetricType, &dyn Debug)>
pub fn metrics(&self) -> impl Iterator<Item = (MetricType, &dyn Debug)>
Iterate over all defined vector metrics
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Vector
Available on crate feature serde only.
impl<'de> Deserialize<'de> for Vector
Available on crate feature
serde only.Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&Vector> for Nomenclature
impl From<&Vector> for Nomenclature
impl Eq for Vector
impl StructuralPartialEq for Vector
Auto Trait Implementations§
impl Freeze for Vector
impl RefUnwindSafe for Vector
impl Send for Vector
impl Sync for Vector
impl Unpin for Vector
impl UnwindSafe for Vector
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