pub struct NextInput {
pub base: Option<String>,
pub head: Option<String>,
}Expand description
The input of release.next: the landing it is asked about.
use majordomus_cli::capability::builtin::release::NextInput;
// nothing named is the landing the executor performs: this branch onto the trunk
let input = NextInput::default();
assert_eq!((input.base(), input.head()), ("origin/master", "HEAD"));Fields§
§base: Option<String>The trunk the landing raises from; origin/master when absent.
head: Option<String>What lands; HEAD when absent.
Implementations§
Source§impl NextInput
impl NextInput
Trait Implementations§
Source§impl BenchmarkCases for NextInput
impl BenchmarkCases for NextInput
Source§fn benchmark_cases(_: &CaseContext<'_>) -> Vec<NamedCase<Self>>
fn benchmark_cases(_: &CaseContext<'_>) -> Vec<NamedCase<Self>>
None, for the reason AnalysisInput gives: the answer reads committed registries
at two refs, and a benchmark fixture has no history to read them from.
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<'de> Deserialize<'de> for NextInput
impl<'de> Deserialize<'de> for NextInput
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 NextInput
impl JsonSchema for NextInput
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 NextInput
impl RefUnwindSafe for NextInput
impl Send for NextInput
impl Sync for NextInput
impl Unpin for NextInput
impl UnsafeUnpin for NextInput
impl UnwindSafe for NextInput
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