pub enum CustomRuleError {
IoError(Error),
ParseError(Error),
InvalidPattern {
rule_id: String,
pattern: String,
error: Error,
},
InvalidSeverity {
rule_id: String,
value: String,
},
InvalidCategory {
rule_id: String,
value: String,
},
InvalidConfidence {
rule_id: String,
value: String,
},
}Expand description
Error type for custom rule loading.
Variants§
Trait Implementations§
Source§impl Debug for CustomRuleError
impl Debug for CustomRuleError
Source§impl Display for CustomRuleError
impl Display for CustomRuleError
Source§impl Error for CustomRuleError
impl Error for CustomRuleError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for CustomRuleError
impl !RefUnwindSafe for CustomRuleError
impl Send for CustomRuleError
impl Sync for CustomRuleError
impl Unpin for CustomRuleError
impl !UnwindSafe for CustomRuleError
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