pub struct AnalysisInput {
pub since: Option<String>,
}Expand description
Which release to measure this tree against.
use majordomus_cli::capability::builtin::release::AnalysisInput;
// Absent means the last release the layer records, which is the canonical baseline.
let input = AnalysisInput::default();
assert!(input.since.is_none());
let explicit = AnalysisInput { since: Some("v0.4.0".into()) };
assert_eq!(explicit.since.as_deref(), Some("v0.4.0"));Fields§
§since: Option<String>A ref to compare with instead of the last release: v0.4.0, or any commit that
carries a committed registry.
Trait Implementations§
Source§impl BenchmarkCases for AnalysisInput
impl BenchmarkCases for AnalysisInput
Source§fn benchmark_cases(_: &CaseContext<'_>) -> Vec<NamedCase<Self>>
fn benchmark_cases(_: &CaseContext<'_>) -> Vec<NamedCase<Self>>
None. The capability is waived from the benchmark
(WaiverReason::PublishedHistory) because its input is a release this repository
has published, and a benchmark fixture has published nothing — so every case here
would time a refusal and be counted as coverage. The trait is still implemented
because the registry asks every input type for its cases; answering “none” is the
honest answer rather than a case that measures an error path.
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 AnalysisInput
impl Clone for AnalysisInput
Source§fn clone(&self) -> AnalysisInput
fn clone(&self) -> AnalysisInput
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 AnalysisInput
impl Debug for AnalysisInput
Source§impl Default for AnalysisInput
impl Default for AnalysisInput
Source§fn default() -> AnalysisInput
fn default() -> AnalysisInput
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AnalysisInput
impl<'de> Deserialize<'de> for AnalysisInput
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 AnalysisInput
impl JsonSchema for AnalysisInput
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 AnalysisInput
impl RefUnwindSafe for AnalysisInput
impl Send for AnalysisInput
impl Sync for AnalysisInput
impl Unpin for AnalysisInput
impl UnsafeUnpin for AnalysisInput
impl UnwindSafe for AnalysisInput
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