Skip to main content

MultiReport

Struct MultiReport 

Source
#[non_exhaustive]
pub struct MultiReport { pub revisions: Vec<String>, pub revision_mismatch: Option<Vec<String>>, pub summaries: Vec<RevisionSummary>, pub requirements: Vec<MultiRow>, }
Expand description

A multi-revision report: the same trace judged against several revisions, aligned per clause.

Like Report, it is an artifact — serialization order is fixed (revisions in the order requested; clauses in registry-union order) and nothing environment-dependent appears.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§revisions: Vec<String>

The revisions judged, in the order requested — the column order for every row.

§revision_mismatch: Option<Vec<String>>

The revisions the session declared, when it declared some and none of Self::revisions is among them. Named explicitly on the command line or not, judging a recording against rules it was never playing by is the same mistake, and the reader is told so either way (crate::declared).

§summaries: Vec<RevisionSummary>

Per-revision aggregate results, aligned by index with revisions.

§requirements: Vec<MultiRow>

Union of clauses across the judged revisions, in registry-union order. A clause is included when it exists at one or more of the judged revisions.

Implementations§

Source§

impl MultiReport

Source

pub fn verdict(&self) -> Verdict

The overall verdict: the worst across revisions, by the same severity priority a single Report uses (unsupported ≻ fail ≻ pass-with-warnings ≻ pass). A multi-revision run is only as good as its weakest revision.

Source

pub fn render_human(&self) -> String

Renders the human-readable form.

Trait Implementations§

Source§

impl Clone for MultiReport

Source§

fn clone(&self) -> MultiReport

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for MultiReport

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for MultiReport

Source§

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 Eq for MultiReport

Source§

impl PartialEq for MultiReport

Source§

fn eq(&self, other: &MultiReport) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for MultiReport

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for MultiReport

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.