Enum google_api_proto::grafeas::v1::vulnerability_assessment_note::assessment::justification::JustificationType
source · #[repr(i32)]pub enum JustificationType {
Unspecified = 0,
ComponentNotPresent = 1,
VulnerableCodeNotPresent = 2,
VulnerableCodeNotInExecutePath = 3,
VulnerableCodeCannotBeControlledByAdversary = 4,
InlineMitigationsAlreadyExist = 5,
}
Expand description
Provides the type of justification.
Variants§
Unspecified = 0
JUSTIFICATION_TYPE_UNSPECIFIED.
ComponentNotPresent = 1
The vulnerable component is not present in the product.
VulnerableCodeNotPresent = 2
The vulnerable code is not present. Typically this case occurs when source code is configured or built in a way that excludes the vulnerable code.
VulnerableCodeNotInExecutePath = 3
The vulnerable code can not be executed. Typically this case occurs when the product includes the vulnerable code but does not call or use the vulnerable code.
VulnerableCodeCannotBeControlledByAdversary = 4
The vulnerable code cannot be controlled by an attacker to exploit the vulnerability.
InlineMitigationsAlreadyExist = 5
The product includes built-in protections or features that prevent exploitation of the vulnerability. These built-in protections cannot be subverted by the attacker and cannot be configured or disabled by the user. These mitigations completely prevent exploitation based on known attack vectors.
Implementations§
source§impl JustificationType
impl JustificationType
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 JustificationType
impl Clone for JustificationType
source§fn clone(&self) -> JustificationType
fn clone(&self) -> JustificationType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for JustificationType
impl Debug for JustificationType
source§impl Default for JustificationType
impl Default for JustificationType
source§fn default() -> JustificationType
fn default() -> JustificationType
source§impl From<JustificationType> for i32
impl From<JustificationType> for i32
source§fn from(value: JustificationType) -> i32
fn from(value: JustificationType) -> i32
source§impl Hash for JustificationType
impl Hash for JustificationType
source§impl Ord for JustificationType
impl Ord for JustificationType
source§fn cmp(&self, other: &JustificationType) -> Ordering
fn cmp(&self, other: &JustificationType) -> 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 JustificationType
impl PartialEq for JustificationType
source§fn eq(&self, other: &JustificationType) -> bool
fn eq(&self, other: &JustificationType) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for JustificationType
impl PartialOrd for JustificationType
source§fn partial_cmp(&self, other: &JustificationType) -> Option<Ordering>
fn partial_cmp(&self, other: &JustificationType) -> 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 JustificationType
impl TryFrom<i32> for JustificationType
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<JustificationType, DecodeError>
fn try_from(value: i32) -> Result<JustificationType, DecodeError>
impl Copy for JustificationType
impl Eq for JustificationType
impl StructuralPartialEq for JustificationType
Auto Trait Implementations§
impl Freeze for JustificationType
impl RefUnwindSafe for JustificationType
impl Send for JustificationType
impl Sync for JustificationType
impl Unpin for JustificationType
impl UnwindSafe for JustificationType
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