pub struct Report { /* private fields */ }Expand description
Everything wrong with one message.
Implementations§
Source§impl Report
impl Report
Sourcepub fn push(&mut self, rule: RuleId, path: &str, message: impl Into<String>)
pub fn push(&mut self, rule: RuleId, path: &str, message: impl Into<String>)
Record a violation. The severity comes from the catalogue.
Record a violation that involves particular identifiers.
Sourcepub fn violations(&self) -> &[Violation]
pub fn violations(&self) -> &[Violation]
Every violation, errors and warnings alike.
Sourcepub fn has_errors(&self) -> bool
pub fn has_errors(&self) -> bool
Whether the message should be refused.
Sourcepub fn first_error(&self) -> Option<&Violation>
pub fn first_error(&self) -> Option<&Violation>
The first error, which is the one worth telling the peer about.
Sourcepub fn reception_status(&self) -> ReceptionStatusValues
pub fn reception_status(&self) -> ReceptionStatusValues
The reception status a receiver should answer with.
Sourcepub fn diagnostic_label(&self) -> Option<String>
pub fn diagnostic_label(&self) -> Option<String>
The diagnostic_label for that reception status: the first error, rule
identifier first, so that errors are greppable across a fleet.
Trait Implementations§
impl Eq for Report
impl StructuralPartialEq for Report
Auto Trait Implementations§
impl Forget for Report
impl Freeze for Report
impl Move for Report
impl RefUnwindSafe for Report
impl Send for Report
impl Sync for Report
impl Unpin for Report
impl UnsafeUnpin for Report
impl UnwindSafe for Report
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.