Struct googapis::google::iam::admin::v1::LintResult [−][src]
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
Returns the enum value of level
, or the default if the field is set to an invalid enum value.
Returns the enum value of severity
, or the default if the field is set to an invalid enum value.
Sets severity
to the provided enum value.
Trait Implementations
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
Returns the encoded length of the message without a length delimiter.
Encodes the message to a buffer. Read more
Encodes the message to a newly allocated buffer.
Encodes the message with a length-delimiter to a buffer. Read more
Encodes the message with a length-delimiter to a newly allocated buffer.
Decodes an instance of the message from a buffer. Read more
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
Decodes a length-delimited instance of the message from the buffer.
Decodes an instance of the message from a buffer, and merges it into self
. Read more
Decodes a length-delimited instance of the message from buffer, and
merges it into self
. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for LintResult
impl Send for LintResult
impl Sync for LintResult
impl Unpin for LintResult
impl UnwindSafe for LintResult
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more