Struct google_api_proto::google::cloud::securitycenter::v1::Cvssv3
source · pub struct Cvssv3 {
pub base_score: f64,
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.
Fields§
§base_score: f64
The base score is a function of the base metric scores.
attack_vector: i32
Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments. 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
.source§impl PartialEq for Cvssv3
impl PartialEq for Cvssv3
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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