Struct google_api_proto::google::iam::admin::v1::LintResult
source · pub struct LintResult {
pub level: i32,
pub validation_unit_name: String,
pub severity: i32,
pub field_name: String,
pub location_offset: i32,
pub debug_message: String,
}
Expand description
Structured response of a single validation unit.
Fields§
§level: i32
The validation unit level.
validation_unit_name: String
The validation unit name, for instance “lintValidationUnits/ConditionComplexityCheck”.
severity: i32
The validation unit severity.
field_name: String
The name of the field for which this lint result is about.
For nested messages field_name
consists of names of the embedded fields
separated by period character. The top-level qualifier is the input object
to lint in the request. For example, the field_name
value
condition.expression
identifies a lint result for the expression
field
of the provided condition.
location_offset: i32
0-based character position of problematic construct within the object
identified by field_name
. Currently, this is populated only for condition
expression.
debug_message: String
Human readable debug message associated with the issue.
Implementations§
source§impl LintResult
impl LintResult
sourcepub fn level(&self) -> Level
pub fn level(&self) -> Level
Returns the enum value of level
, or the default if the field is set to an invalid enum value.
sourcepub fn severity(&self) -> Severity
pub fn severity(&self) -> Severity
Returns the enum value of severity
, or the default if the field is set to an invalid enum value.
sourcepub fn set_severity(&mut self, value: Severity)
pub fn set_severity(&mut self, value: Severity)
Sets severity
to the provided enum value.
Trait Implementations§
source§impl Clone for LintResult
impl Clone for LintResult
source§fn clone(&self) -> LintResult
fn clone(&self) -> LintResult
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LintResult
impl Debug for LintResult
source§impl Default for LintResult
impl Default for LintResult
source§impl Message for LintResult
impl Message for LintResult
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for LintResult
impl PartialEq for LintResult
source§fn eq(&self, other: &LintResult) -> bool
fn eq(&self, other: &LintResult) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LintResult
Auto Trait Implementations§
impl Freeze for LintResult
impl RefUnwindSafe for LintResult
impl Send for LintResult
impl Sync for LintResult
impl Unpin for LintResult
impl UnwindSafe for LintResult
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<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