Enum google_api_proto::google::iam::admin::v1::lint_result::Severity
source · #[repr(i32)]pub enum Severity {
Unspecified = 0,
Error = 1,
Warning = 2,
Notice = 3,
Info = 4,
Deprecated = 5,
}
Expand description
Possible Severity values of an issued result.
Variants§
Unspecified = 0
Severity is unspecified.
Error = 1
A validation unit returns an error only for critical issues. If an
attempt is made to set the problematic policy without rectifying the
critical issue, it causes the setPolicy
operation to fail.
Warning = 2
Any issue which is severe enough but does not cause an error.
For example, suspicious constructs in the input object will not
necessarily fail setPolicy
, but there is a high likelihood that they
won’t behave as expected during policy evaluation in checkPolicy
.
This includes the following common scenarios:
- Unsatisfiable condition: Expired timestamp in date/time condition.
- Ineffective condition: Condition on a <principal, role> pair which is granted unconditionally in another binding of the same policy.
Notice = 3
Reserved for the issues that are not severe as ERROR
/WARNING
, but
need special handling. For instance, messages about skipped validation
units are issued as NOTICE
.
Info = 4
Any informative statement which is not severe enough to raise
ERROR
/WARNING
/NOTICE
, like auto-correction recommendations on the
input content. Note that current version of the linter does not utilize
INFO
.
Deprecated = 5
Deprecated severity level.
Implementations§
source§impl Severity
impl Severity
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 Ord for Severity
impl Ord for Severity
source§impl PartialEq for Severity
impl PartialEq for Severity
source§impl PartialOrd for Severity
impl PartialOrd for Severity
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 Severity
impl TryFrom<i32> for Severity
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
impl Copy for Severity
impl Eq for Severity
impl StructuralPartialEq for Severity
Auto Trait Implementations§
impl Freeze for Severity
impl RefUnwindSafe for Severity
impl Send for Severity
impl Sync for Severity
impl Unpin for Severity
impl UnwindSafe for Severity
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