Struct google_api_proto::grafeas::v1::Cvss
source · pub struct Cvss {
pub base_score: f32,
pub exploitability_score: f32,
pub impact_score: f32,
pub attack_vector: i32,
pub attack_complexity: i32,
pub authentication: 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. For details, see https://www.first.org/cvss/specification-document This is a message we will try to use for storing various versions of CVSS rather than making a separate proto for storing a specific version.
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
§authentication: i32
§privileges_required: i32
§user_interaction: i32
§scope: i32
§confidentiality_impact: i32
§integrity_impact: i32
§availability_impact: i32
Implementations§
source§impl Cvss
impl Cvss
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 authentication(&self) -> Authentication
pub fn authentication(&self) -> Authentication
Returns the enum value of authentication
, or the default if the field is set to an invalid enum value.
sourcepub fn set_authentication(&mut self, value: Authentication)
pub fn set_authentication(&mut self, value: Authentication)
Sets authentication
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 Cvss
impl Message for Cvss
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 Cvss
impl PartialEq for Cvss
impl Copy for Cvss
impl StructuralPartialEq for Cvss
Auto Trait Implementations§
impl Freeze for Cvss
impl RefUnwindSafe for Cvss
impl Send for Cvss
impl Sync for Cvss
impl Unpin for Cvss
impl UnwindSafe for Cvss
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