pub struct HistoryReport {
pub range: String,
pub total: usize,
pub exempt: usize,
pub failing: usize,
pub commits: Vec<JudgedCommit>,
}Expand description
A range of history, judged. A range of history, judged in one pass.
use majordomus_cli::commit::verdict::HistoryReport;
let r = HistoryReport {
range: "HEAD".into(),
total: 1755,
exempt: 561,
failing: 54,
commits: Vec::new(),
};
// a commit with nothing to say is counted and not listed: a report of a thousand
// passing commits is a report nobody reads
assert!(r.commits.is_empty());
assert_eq!(r.total - r.exempt, 1194);Fields§
§range: StringThe range as asked for.
total: usizeHow many commits were read.
exempt: usizeHow many were exempt because git composed their subject.
failing: usizeHow many carry a finding of error severity.
commits: Vec<JudgedCommit>Every commit that carries a finding, newest first. A commit with nothing to say is counted and not listed: a report that printed a thousand passing commits would be a report nobody reads.
Trait Implementations§
Source§impl Clone for HistoryReport
impl Clone for HistoryReport
Source§fn clone(&self) -> HistoryReport
fn clone(&self) -> HistoryReport
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 HistoryReport
impl Debug for HistoryReport
Source§impl<'de> Deserialize<'de> for HistoryReport
impl<'de> Deserialize<'de> for HistoryReport
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 HistoryReport
impl JsonSchema for HistoryReport
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 HistoryReport
impl RefUnwindSafe for HistoryReport
impl Send for HistoryReport
impl Sync for HistoryReport
impl Unpin for HistoryReport
impl UnsafeUnpin for HistoryReport
impl UnwindSafe for HistoryReport
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