Enum google_api_proto::google::cloud::osconfig::v1::cvs_sv3::PrivilegesRequired
source · #[repr(i32)]pub enum PrivilegesRequired {
Unspecified = 0,
None = 1,
Low = 2,
High = 3,
}
Expand description
This metric describes the level of privileges an attacker must possess before successfully exploiting the vulnerability.
Variants§
Unspecified = 0
Invalid value.
None = 1
The attacker is unauthorized prior to attack, and therefore does not require any access to settings or files of the vulnerable system to carry out an attack.
Low = 2
The attacker requires privileges that provide basic user capabilities that could normally affect only settings and files owned by a user. Alternatively, an attacker with Low privileges has the ability to access only non-sensitive resources.
High = 3
The attacker requires privileges that provide significant (e.g., administrative) control over the vulnerable component allowing access to component-wide settings and files.
Implementations§
source§impl PrivilegesRequired
impl PrivilegesRequired
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 PrivilegesRequired
impl Clone for PrivilegesRequired
source§fn clone(&self) -> PrivilegesRequired
fn clone(&self) -> PrivilegesRequired
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PrivilegesRequired
impl Debug for PrivilegesRequired
source§impl Default for PrivilegesRequired
impl Default for PrivilegesRequired
source§fn default() -> PrivilegesRequired
fn default() -> PrivilegesRequired
source§impl From<PrivilegesRequired> for i32
impl From<PrivilegesRequired> for i32
source§fn from(value: PrivilegesRequired) -> i32
fn from(value: PrivilegesRequired) -> i32
source§impl Hash for PrivilegesRequired
impl Hash for PrivilegesRequired
source§impl Ord for PrivilegesRequired
impl Ord for PrivilegesRequired
source§fn cmp(&self, other: &PrivilegesRequired) -> Ordering
fn cmp(&self, other: &PrivilegesRequired) -> 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 PrivilegesRequired
impl PartialEq for PrivilegesRequired
source§fn eq(&self, other: &PrivilegesRequired) -> bool
fn eq(&self, other: &PrivilegesRequired) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PrivilegesRequired
impl PartialOrd for PrivilegesRequired
source§fn partial_cmp(&self, other: &PrivilegesRequired) -> Option<Ordering>
fn partial_cmp(&self, other: &PrivilegesRequired) -> 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 PrivilegesRequired
impl TryFrom<i32> for PrivilegesRequired
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<PrivilegesRequired, UnknownEnumValue>
fn try_from(value: i32) -> Result<PrivilegesRequired, UnknownEnumValue>
impl Copy for PrivilegesRequired
impl Eq for PrivilegesRequired
impl StructuralPartialEq for PrivilegesRequired
Auto Trait Implementations§
impl Freeze for PrivilegesRequired
impl RefUnwindSafe for PrivilegesRequired
impl Send for PrivilegesRequired
impl Sync for PrivilegesRequired
impl Unpin for PrivilegesRequired
impl UnwindSafe for PrivilegesRequired
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