pub struct RuleSet {
pub name: String,
pub description: String,
pub tags: Vec<String>,
pub violations: BTreeMap<String, Violation>,
pub insights: BTreeMap<String, Violation>,
pub errors: BTreeMap<String, String>,
pub unmatched: Vec<String>,
pub skipped: Vec<String>,
}Expand description
A set of rules and their matched violations.
Fields§
§name: StringRuleset name.
description: StringRuleset description.
Tags generated by matched tagging rules.
violations: BTreeMap<String, Violation>Map of rule ID -> Violation for matched rules.
insights: BTreeMap<String, Violation>Map of rule ID -> Violation for informational rules.
errors: BTreeMap<String, String>Map of rule ID -> error string for failed evaluations.
unmatched: Vec<String>Rule IDs evaluated but not matched.
skipped: Vec<String>Rule IDs skipped.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RuleSet
impl<'de> Deserialize<'de> for RuleSet
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RuleSet, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RuleSet, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for RuleSet
impl Serialize for RuleSet
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for RuleSet
impl RefUnwindSafe for RuleSet
impl Send for RuleSet
impl Sync for RuleSet
impl Unpin for RuleSet
impl UnsafeUnpin for RuleSet
impl UnwindSafe for RuleSet
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