pub struct ChangelogInput {
pub version: Option<String>,
}Expand description
Which part of the changelog to answer with.
Fields§
§version: Option<String>One version, or unreleased; every section when absent.
Trait Implementations§
Source§impl BenchmarkCases for ChangelogInput
impl BenchmarkCases for ChangelogInput
Source§fn benchmark_cases(ctx: &CaseContext<'_>) -> Vec<NamedCase<Self>>
fn benchmark_cases(ctx: &CaseContext<'_>) -> Vec<NamedCase<Self>>
One real version from the layer’s own records, so the narrow case is timed against
something that exists rather than against a filter that matches nothing. A
repository with no records has a narrow case all the same — the coverage gate counts
targets, not repositories, and the OpenAPI operation’s example of version is this
case, which case 92 refuses to see missing — so it falls back to unreleased, the
one section a repository has whether it has released anything or not.
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 ChangelogInput
impl Clone for ChangelogInput
Source§fn clone(&self) -> ChangelogInput
fn clone(&self) -> ChangelogInput
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 ChangelogInput
impl Debug for ChangelogInput
Source§impl Default for ChangelogInput
impl Default for ChangelogInput
Source§fn default() -> ChangelogInput
fn default() -> ChangelogInput
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChangelogInput
impl<'de> Deserialize<'de> for ChangelogInput
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 ChangelogInput
impl JsonSchema for ChangelogInput
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 ChangelogInput
impl RefUnwindSafe for ChangelogInput
impl Send for ChangelogInput
impl Sync for ChangelogInput
impl Unpin for ChangelogInput
impl UnsafeUnpin for ChangelogInput
impl UnwindSafe for ChangelogInput
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