Skip to main content

Report

Struct Report 

Source
pub struct Report {
    pub graph: Graph,
    pub load_errors: Vec<LoadError>,
    pub structure: Structure,
    pub evaluation: Evaluation,
}
Expand description

The result of check: the loaded graph and everything found in it.

Fields§

§graph: Graph

The loaded model.

§load_errors: Vec<LoadError>

Files that could not be loaded.

§structure: Structure

Structure errors and warnings.

§evaluation: Evaluation

Rule results and ghosts.

Implementations§

Source§

impl Report

Source

pub fn to_json(&self) -> Value

The check --json document (section 6 of the spec). Object keys come out sorted.

Source

pub fn exit_code(&self) -> i32

1 if anything is wrong enough to fail a build, else 0.

Source

pub fn human(&self) -> String

The human-readable check output.

Source

pub fn show(&self, id: &str) -> Option<String>

Everything about one node: where it sits, what it links to, what links to it, how it fares.

Source§

impl Report

Source

pub fn index(&self) -> String

A short markdown map of the whole model: counts, planes in order, the group tree, every node by plane and type, rules, and what is failing. It is meant to be read first by a person or an agent, then followed by opening only the nodes that matter. Generated, never edited.

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> 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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

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.