pub struct EvidenceStampInput {
pub producer: Option<EvidenceProducer>,
pub report: Option<String>,
pub exclude: Vec<String>,
}Expand description
What a run asks to have measured about the checkout it leaves: its producer, its report, and its own untracked outputs, which are not a change to what it tested.
use majordomus_cli::capability::builtin::evidence::EvidenceStampInput;
use majordomus_cli::evidence::EvidenceProducer;
let input: EvidenceStampInput =
serde_json::from_str(r#"{"producer": "suite", "exclude": ["dist"]}"#).unwrap();
assert_eq!(input.producer, Some(EvidenceProducer::Suite));
assert_eq!(input.exclude, ["dist"]);
assert_eq!(serde_json::to_string(&input).unwrap(), r#"{"producer":"suite","exclude":["dist"]}"#);Fields§
§producer: Option<EvidenceProducer>The producer whose run this is: suite, crate or coverage.
report: Option<String>The report the run wrote; a local recording needs it named.
exclude: Vec<String>The run’s own untracked outputs, as repository paths: a file, or a directory with everything under it. A pattern, the whole checkout or a path holding tracked files is refused.
Trait Implementations§
Source§impl BenchmarkCases for EvidenceStampInput
impl BenchmarkCases for EvidenceStampInput
Source§fn benchmark_cases(_: &CaseContext<'_>) -> Vec<NamedCase<Self>>
fn benchmark_cases(_: &CaseContext<'_>) -> Vec<NamedCase<Self>>
Nothing: the benchmark repository (src/synthetic.rs) is not a git work tree, so
every case would time a refusal (“there is no commit to measure”) rather than a
measurement. The capability is waived as depending on an external git.
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 EvidenceStampInput
impl Clone for EvidenceStampInput
Source§fn clone(&self) -> EvidenceStampInput
fn clone(&self) -> EvidenceStampInput
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 EvidenceStampInput
impl Debug for EvidenceStampInput
Source§impl<'de> Deserialize<'de> for EvidenceStampInput
impl<'de> Deserialize<'de> for EvidenceStampInput
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 EvidenceStampInput
impl JsonSchema for EvidenceStampInput
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 EvidenceStampInput
impl RefUnwindSafe for EvidenceStampInput
impl Send for EvidenceStampInput
impl Sync for EvidenceStampInput
impl Unpin for EvidenceStampInput
impl UnsafeUnpin for EvidenceStampInput
impl UnwindSafe for EvidenceStampInput
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