Struct google_api_proto::grafeas::v1beta1::vulnerability::CvsSv3
source · 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.
exploitability_score: f32
§impact_score: f32
§attack_vector: i32
Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments.
attack_complexity: i32
§privileges_required: i32
§user_interaction: i32
§scope: i32
§confidentiality_impact: i32
§integrity_impact: i32
§availability_impact: i32
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