pub struct RuleValidationWarning {
pub key: String,
pub reason: RuleValidationReason,
}Expand description
A diagnostic about a RulesConfig key that the engine couldn’t match.
Produced by RulesConfig::validate. Operators can use these at
config-load time to catch typos and unsupported syntax before any
validation work runs.
Fields§
§key: StringThe configured key that triggered the warning.
reason: RuleValidationReasonWhy it triggered.
Trait Implementations§
Source§impl Clone for RuleValidationWarning
impl Clone for RuleValidationWarning
Source§fn clone(&self) -> RuleValidationWarning
fn clone(&self) -> RuleValidationWarning
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 RuleValidationWarning
impl Debug for RuleValidationWarning
Source§impl<'de> Deserialize<'de> for RuleValidationWarning
impl<'de> Deserialize<'de> for RuleValidationWarning
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 RuleValidationWarning
Source§impl PartialEq for RuleValidationWarning
impl PartialEq for RuleValidationWarning
Source§fn eq(&self, other: &RuleValidationWarning) -> bool
fn eq(&self, other: &RuleValidationWarning) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RuleValidationWarning
impl Serialize for RuleValidationWarning
impl StructuralPartialEq for RuleValidationWarning
Auto Trait Implementations§
impl Freeze for RuleValidationWarning
impl RefUnwindSafe for RuleValidationWarning
impl Send for RuleValidationWarning
impl Sync for RuleValidationWarning
impl Unpin for RuleValidationWarning
impl UnsafeUnpin for RuleValidationWarning
impl UnwindSafe for RuleValidationWarning
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
Mutably borrows from an owned value. Read more