Enum google_api_proto::google::cloud::securitycenter::v1::cve::RiskRating
source · #[repr(i32)]pub enum RiskRating {
Unspecified = 0,
Low = 1,
Medium = 2,
High = 3,
Critical = 4,
}
Expand description
The possible values of impact of the vulnerability if it was to be exploited.
Variants§
Unspecified = 0
Invalid or empty value.
Low = 1
Exploitation would have little to no security impact.
Medium = 2
Exploitation would enable attackers to perform activities, or could allow attackers to have a direct impact, but would require additional steps.
High = 3
Exploitation would enable attackers to have a notable direct impact without needing to overcome any major mitigating factors.
Critical = 4
Exploitation would fundamentally undermine the security of affected systems, enable actors to perform significant attacks with minimal effort, with little to no mitigating factors to overcome.
Implementations§
source§impl RiskRating
impl RiskRating
source§impl RiskRating
impl RiskRating
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for RiskRating
impl Clone for RiskRating
source§fn clone(&self) -> RiskRating
fn clone(&self) -> RiskRating
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RiskRating
impl Debug for RiskRating
source§impl Default for RiskRating
impl Default for RiskRating
source§fn default() -> RiskRating
fn default() -> RiskRating
source§impl From<RiskRating> for i32
impl From<RiskRating> for i32
source§fn from(value: RiskRating) -> i32
fn from(value: RiskRating) -> i32
source§impl Hash for RiskRating
impl Hash for RiskRating
source§impl Ord for RiskRating
impl Ord for RiskRating
source§fn cmp(&self, other: &RiskRating) -> Ordering
fn cmp(&self, other: &RiskRating) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for RiskRating
impl PartialEq for RiskRating
source§fn eq(&self, other: &RiskRating) -> bool
fn eq(&self, other: &RiskRating) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for RiskRating
impl PartialOrd for RiskRating
source§fn partial_cmp(&self, other: &RiskRating) -> Option<Ordering>
fn partial_cmp(&self, other: &RiskRating) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for RiskRating
impl TryFrom<i32> for RiskRating
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<RiskRating, UnknownEnumValue>
fn try_from(value: i32) -> Result<RiskRating, UnknownEnumValue>
impl Copy for RiskRating
impl Eq for RiskRating
impl StructuralPartialEq for RiskRating
Auto Trait Implementations§
impl Freeze for RiskRating
impl RefUnwindSafe for RiskRating
impl Send for RiskRating
impl Sync for RiskRating
impl Unpin for RiskRating
impl UnwindSafe for RiskRating
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§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