[−][src]Enum cvss::v3::base::pr::PrivilegesRequired
Privileges Required (PR) - CVSS v3.1 Base Metric Group
Described in CVSS v3.1 Specification: Section 2.1.3: https://www.first.org/cvss/specification-document#t6
This metric describes the level of privileges an attacker must possess before successfully exploiting the vulnerability. The Base Score is greatest if no privileges are required.
Variants
High (H)
The attacker requires privileges that provide significant (e.g., administrative) control over the vulnerable component allowing access to component-wide settings and files.
Low (L)
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.
None (N)
The attacker is unauthorized prior to attack, and therefore does not require any access to settings or files of the the vulnerable system to carry out an attack.
Implementations
impl PrivilegesRequired
[src]
pub fn scoped_score(self, scope_change: bool) -> f64
[src]
Score when accounting for scope change
Trait Implementations
impl Clone for PrivilegesRequired
[src]
fn clone(&self) -> PrivilegesRequired
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for PrivilegesRequired
[src]
impl Debug for PrivilegesRequired
[src]
impl Display for PrivilegesRequired
[src]
impl Eq for PrivilegesRequired
[src]
impl FromStr for PrivilegesRequired
[src]
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Error>
[src]
impl Metric for PrivilegesRequired
[src]
impl Ord for PrivilegesRequired
[src]
fn cmp(&self, other: &PrivilegesRequired) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<PrivilegesRequired> for PrivilegesRequired
[src]
fn eq(&self, other: &PrivilegesRequired) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<PrivilegesRequired> for PrivilegesRequired
[src]
fn partial_cmp(&self, other: &PrivilegesRequired) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for PrivilegesRequired
[src]
impl StructuralPartialEq for PrivilegesRequired
[src]
Auto Trait Implementations
impl RefUnwindSafe for PrivilegesRequired
[src]
impl Send for PrivilegesRequired
[src]
impl Sync for PrivilegesRequired
[src]
impl Unpin for PrivilegesRequired
[src]
impl UnwindSafe for PrivilegesRequired
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,