#[non_exhaustive]pub struct AnalysisWarning {
pub rule: String,
pub message: String,
pub kind: WarningKind,
}Available on crate feature
validation only.Expand description
A warning produced by static analysis.
#[non_exhaustive]: an output type the crate constructs; new fields may be
added without a breaking change.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.rule: StringThe CEL rule the warning applies to.
message: StringHuman-readable description of the warning.
kind: WarningKindClassification of the warning.
Trait Implementations§
Source§impl Clone for AnalysisWarning
impl Clone for AnalysisWarning
Source§fn clone(&self) -> AnalysisWarning
fn clone(&self) -> AnalysisWarning
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AnalysisWarning
impl Debug for AnalysisWarning
Source§impl<'de> Deserialize<'de> for AnalysisWarning
impl<'de> Deserialize<'de> for AnalysisWarning
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AnalysisWarning
Source§impl PartialEq for AnalysisWarning
impl PartialEq for AnalysisWarning
Source§fn eq(&self, other: &AnalysisWarning) -> bool
fn eq(&self, other: &AnalysisWarning) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AnalysisWarning
impl Serialize for AnalysisWarning
impl StructuralPartialEq for AnalysisWarning
Auto Trait Implementations§
impl Freeze for AnalysisWarning
impl RefUnwindSafe for AnalysisWarning
impl Send for AnalysisWarning
impl Sync for AnalysisWarning
impl Unpin for AnalysisWarning
impl UnsafeUnpin for AnalysisWarning
impl UnwindSafe for AnalysisWarning
Blanket Implementations§
Source§impl<T> AnyExt for T
impl<T> AnyExt for T
Source§fn downcast_ref<T>(this: &Self) -> Option<&T>where
T: Any,
fn downcast_ref<T>(this: &Self) -> Option<&T>where
T: Any,
Attempts to downcast this to
T behind referenceSource§fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where
T: Any,
fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where
T: Any,
Attempts to downcast this to
T behind mutable referenceSource§fn downcast_rc<T>(this: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
T: Any,
fn downcast_rc<T>(this: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
T: Any,
Attempts to downcast this to
T behind Rc pointerSource§fn downcast_arc<T>(this: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
T: Any,
fn downcast_arc<T>(this: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
T: Any,
Attempts to downcast this to
T behind Arc pointerSource§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
Mutably borrows from an owned value. Read more