pub struct CvsSv3 {
pub base_score: f32,
pub exploitability_score: f32,
pub impact_score: f32,
pub attack_vector: i32,
pub attack_complexity: i32,
pub privileges_required: i32,
pub user_interaction: i32,
pub scope: i32,
pub confidentiality_impact: i32,
pub integrity_impact: i32,
pub availability_impact: i32,
}
Expand description
Common Vulnerability Scoring System version 3. For details, see https://www.first.org/cvss/specification-document
Fields§
§base_score: f32
The base score is a function of the base metric scores. https://www.first.org/cvss/specification-document#Base-Metrics
exploitability_score: f32
The Exploitability sub-score equation is derived from the Base Exploitability metrics. https://www.first.org/cvss/specification-document#2-1-Exploitability-Metrics
impact_score: f32
The Impact sub-score equation is derived from the Base Impact metrics.
attack_vector: i32
This metric reflects the context by which vulnerability exploitation is possible.
attack_complexity: i32
This metric describes the conditions beyond the attacker’s control that must exist in order to exploit the vulnerability.
privileges_required: i32
This metric describes the level of privileges an attacker must possess before successfully exploiting the vulnerability.
user_interaction: i32
This metric captures the requirement for a human user, other than the attacker, to participate in the successful compromise of the vulnerable component.
scope: i32
The Scope metric captures whether a vulnerability in one vulnerable component impacts resources in components beyond its security scope.
confidentiality_impact: i32
This metric measures the impact to the confidentiality of the information resources managed by a software component due to a successfully exploited vulnerability.
integrity_impact: i32
This metric measures the impact to integrity of a successfully exploited vulnerability.
availability_impact: i32
This metric measures the impact to the availability of the impacted component resulting from a successfully exploited vulnerability.
Implementations§
Source§impl CvsSv3
impl CvsSv3
Sourcepub fn attack_vector(&self) -> AttackVector
pub fn attack_vector(&self) -> AttackVector
Returns the enum value of attack_vector
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_attack_vector(&mut self, value: AttackVector)
pub fn set_attack_vector(&mut self, value: AttackVector)
Sets attack_vector
to the provided enum value.
Sourcepub fn attack_complexity(&self) -> AttackComplexity
pub fn attack_complexity(&self) -> AttackComplexity
Returns the enum value of attack_complexity
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_attack_complexity(&mut self, value: AttackComplexity)
pub fn set_attack_complexity(&mut self, value: AttackComplexity)
Sets attack_complexity
to the provided enum value.
Sourcepub fn privileges_required(&self) -> PrivilegesRequired
pub fn privileges_required(&self) -> PrivilegesRequired
Returns the enum value of privileges_required
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_privileges_required(&mut self, value: PrivilegesRequired)
pub fn set_privileges_required(&mut self, value: PrivilegesRequired)
Sets privileges_required
to the provided enum value.
Sourcepub fn user_interaction(&self) -> UserInteraction
pub fn user_interaction(&self) -> UserInteraction
Returns the enum value of user_interaction
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_user_interaction(&mut self, value: UserInteraction)
pub fn set_user_interaction(&mut self, value: UserInteraction)
Sets user_interaction
to the provided enum value.
Sourcepub fn scope(&self) -> Scope
pub fn scope(&self) -> Scope
Returns the enum value of scope
, or the default if the field is set to an invalid enum value.
Sourcepub fn confidentiality_impact(&self) -> Impact
pub fn confidentiality_impact(&self) -> Impact
Returns the enum value of confidentiality_impact
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_confidentiality_impact(&mut self, value: Impact)
pub fn set_confidentiality_impact(&mut self, value: Impact)
Sets confidentiality_impact
to the provided enum value.
Sourcepub fn integrity_impact(&self) -> Impact
pub fn integrity_impact(&self) -> Impact
Returns the enum value of integrity_impact
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_integrity_impact(&mut self, value: Impact)
pub fn set_integrity_impact(&mut self, value: Impact)
Sets integrity_impact
to the provided enum value.
Sourcepub fn availability_impact(&self) -> Impact
pub fn availability_impact(&self) -> Impact
Returns the enum value of availability_impact
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_availability_impact(&mut self, value: Impact)
pub fn set_availability_impact(&mut self, value: Impact)
Sets availability_impact
to the provided enum value.
Trait Implementations§
Source§impl Message for CvsSv3
impl Message for CvsSv3
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.impl Copy for CvsSv3
impl StructuralPartialEq for CvsSv3
Auto Trait Implementations§
impl Freeze for CvsSv3
impl RefUnwindSafe for CvsSv3
impl Send for CvsSv3
impl Sync for CvsSv3
impl Unpin for CvsSv3
impl UnwindSafe for CvsSv3
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request