pub struct MetricContent {
pub cvss_v3: Option<CvssV3>,
pub cvss_v4: Option<CvssV4>,
}Expand description
Metric content containing one or both CVSS versions.
Fields§
§cvss_v3: Option<CvssV3>CVSS v3.1 scoring.
cvss_v4: Option<CvssV4>CVSS v4.0 scoring.
Trait Implementations§
Source§impl Clone for MetricContent
impl Clone for MetricContent
Source§fn clone(&self) -> MetricContent
fn clone(&self) -> MetricContent
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 MetricContent
impl Debug for MetricContent
Source§impl<'de> Deserialize<'de> for MetricContent
impl<'de> Deserialize<'de> for MetricContent
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 PartialEq for MetricContent
impl PartialEq for MetricContent
Source§fn eq(&self, other: &MetricContent) -> bool
fn eq(&self, other: &MetricContent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MetricContent
impl Serialize for MetricContent
impl StructuralPartialEq for MetricContent
Auto Trait Implementations§
impl Freeze for MetricContent
impl RefUnwindSafe for MetricContent
impl Send for MetricContent
impl Sync for MetricContent
impl Unpin for MetricContent
impl UnsafeUnpin for MetricContent
impl UnwindSafe for MetricContent
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