pub struct CeremonyValidationReport { /* private fields */ }Expand description
The complete outcome of analysing a ceremony definition.
Analysis collects every defect instead of stopping at the first one. A boolean, or a single error, does not carry enough information for an author to correct a draft in one pass.
Findings preserve the order in which the checks run, so the first blocking finding is the error fail-fast construction would raise.
Deliberately not serializable, for the same reason as
CeremonyValidationFinding.
Implementations§
Source§impl CeremonyValidationReport
impl CeremonyValidationReport
pub fn new( findings: impl IntoIterator<Item = CeremonyValidationFinding>, ) -> Self
pub fn findings(&self) -> &[CeremonyValidationFinding]
pub fn errors(&self) -> impl Iterator<Item = &CeremonyValidationFinding>
pub fn warnings(&self) -> impl Iterator<Item = &CeremonyValidationFinding>
Sourcepub fn first_error(&self) -> Option<&CeremonyValidationFinding>
pub fn first_error(&self) -> Option<&CeremonyValidationFinding>
The first blocking finding, in check order.
Trait Implementations§
Source§impl Clone for CeremonyValidationReport
impl Clone for CeremonyValidationReport
Source§fn clone(&self) -> CeremonyValidationReport
fn clone(&self) -> CeremonyValidationReport
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 CeremonyValidationReport
impl Debug for CeremonyValidationReport
Source§impl Default for CeremonyValidationReport
impl Default for CeremonyValidationReport
Source§fn default() -> CeremonyValidationReport
fn default() -> CeremonyValidationReport
Returns the “default value” for a type. Read more
Source§impl PartialEq for CeremonyValidationReport
impl PartialEq for CeremonyValidationReport
impl StructuralPartialEq for CeremonyValidationReport
Auto Trait Implementations§
impl Freeze for CeremonyValidationReport
impl RefUnwindSafe for CeremonyValidationReport
impl Send for CeremonyValidationReport
impl Sync for CeremonyValidationReport
impl Unpin for CeremonyValidationReport
impl UnsafeUnpin for CeremonyValidationReport
impl UnwindSafe for CeremonyValidationReport
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