TraceMaker
C++ API of the engine
Loading...
Searching...
No Matches
tmk::crules::RuleSpec Struct Reference

#include <crules/catalogue.hpp>

Public Member Functions

bool enforced_in (std::string_view stage) const

Public Attributes

std::string id
std::string kind
std::string text
std::string evidence
std::string note
std::vector< std::string > applies_to
std::vector< std::string > enforce
std::vector< std::string > sources
nlohmann::ordered_json params
Severity severity = Severity::Soft

Detailed Description

Definition at line 32 of file catalogue.hpp.

Member Function Documentation

◆ enforced_in()

bool tmk::crules::RuleSpec::enforced_in ( std::string_view stage) const

Member Data Documentation

◆ applies_to

std::vector<std::string> tmk::crules::RuleSpec::applies_to

Definition at line 34 of file catalogue.hpp.

◆ enforce

std::vector<std::string> tmk::crules::RuleSpec::enforce

Definition at line 34 of file catalogue.hpp.

◆ evidence

std::string tmk::crules::RuleSpec::evidence

Definition at line 33 of file catalogue.hpp.

◆ id

std::string tmk::crules::RuleSpec::id

Definition at line 33 of file catalogue.hpp.

◆ kind

std::string tmk::crules::RuleSpec::kind

Definition at line 33 of file catalogue.hpp.

◆ note

std::string tmk::crules::RuleSpec::note

Definition at line 33 of file catalogue.hpp.

◆ params

nlohmann::ordered_json tmk::crules::RuleSpec::params

Definition at line 35 of file catalogue.hpp.

◆ severity

Severity tmk::crules::RuleSpec::severity = Severity::Soft

Definition at line 36 of file catalogue.hpp.

◆ sources

std::vector<std::string> tmk::crules::RuleSpec::sources

Definition at line 34 of file catalogue.hpp.

◆ text

std::string tmk::crules::RuleSpec::text

Definition at line 33 of file catalogue.hpp.


The documentation for this struct was generated from the following file: