pub struct RulesReportInput {
pub state: Option<RuleState>,
pub class: Option<Class>,
pub namespace: Option<String>,
pub findings_only: bool,
}Expand description
Which part of the corpus to answer for.
§Example
Every field narrows the answer; the tallies still count the whole corpus, so a filtered report never misreports how much of it was examined.
use majordomus_cli::capability::builtin::rules::RulesReportInput;
use majordomus_cli::rules::Class;
let i = RulesReportInput { class: Some(Class::Blocking), ..Default::default() };
assert_eq!(i.class, Some(Class::Blocking));
assert!(!i.findings_only);Fields§
§state: Option<RuleState>Only rules in this proof state (proven, inputs_unchanged, stale, failing,
not_run, unrunnable, dangling, unproven). Absent: every rule.
class: Option<Class>Only rules of this class (blocking, advisory). Absent: every rule.
namespace: Option<String>Only rules of this namespace — project for this repository’s own, majordomus for
the vendored package. Absent: both.
findings_only: boolOnly the rules whose declared class the proof does not support, with the findings. The tallies still count the whole corpus, so a filtered answer never misreports how much of it was examined.
Trait Implementations§
Source§impl BenchmarkCases for RulesReportInput
impl BenchmarkCases for RulesReportInput
Source§fn benchmark_cases(_: &CaseContext<'_>) -> Vec<NamedCase<Self>>
fn benchmark_cases(_: &CaseContext<'_>) -> Vec<NamedCase<Self>>
The cases, in a stable order. An empty list means “nothing to benchmark in this
repository”, which the coverage check reports as missing.
Source§fn benchmark_cases_json(ctx: &CaseContext<'_>) -> Vec<NamedCase<Value>>
fn benchmark_cases_json(ctx: &CaseContext<'_>) -> Vec<NamedCase<Value>>
The cases as JSON, the shape every runner serialises from.
Source§impl Clone for RulesReportInput
impl Clone for RulesReportInput
Source§fn clone(&self) -> RulesReportInput
fn clone(&self) -> RulesReportInput
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 RulesReportInput
impl Debug for RulesReportInput
Source§impl Default for RulesReportInput
impl Default for RulesReportInput
Source§fn default() -> RulesReportInput
fn default() -> RulesReportInput
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RulesReportInput
impl<'de> Deserialize<'de> for RulesReportInput
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
Source§impl JsonSchema for RulesReportInput
impl JsonSchema for RulesReportInput
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for RulesReportInput
impl RefUnwindSafe for RulesReportInput
impl Send for RulesReportInput
impl Sync for RulesReportInput
impl Unpin for RulesReportInput
impl UnsafeUnpin for RulesReportInput
impl UnwindSafe for RulesReportInput
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