pub struct VerificationReport {
pub checks: Vec<CheckOutcome>,
}Expand description
The full audit of a generated SQL file.
Fields§
§checks: Vec<CheckOutcome>Every check performed, in table/kind order.
Implementations§
Source§impl VerificationReport
impl VerificationReport
Sourcepub fn passed(&self) -> bool
pub fn passed(&self) -> bool
Whether every evaluated check passed. A NotChecked capability does not
by itself fail the report; only an actual failed check does.
Sourcepub fn failures(&self) -> impl Iterator<Item = &CheckOutcome>
pub fn failures(&self) -> impl Iterator<Item = &CheckOutcome>
The checks that failed, most useful for diagnostics.
Sourcepub fn failed(&self, needle: &str) -> bool
pub fn failed(&self, needle: &str) -> bool
Whether a check whose name contains needle failed. Convenience for
tests asserting a specific named exact check caught a corruption.
Sourcepub fn status_of(&self, needle: &str) -> Option<CheckStatus>
pub fn status_of(&self, needle: &str) -> Option<CheckStatus>
The status of the first check whose name contains needle, if any.
Trait Implementations§
Source§impl Clone for VerificationReport
impl Clone for VerificationReport
Source§fn clone(&self) -> VerificationReport
fn clone(&self) -> VerificationReport
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 VerificationReport
impl Debug for VerificationReport
Source§impl Default for VerificationReport
impl Default for VerificationReport
Source§fn default() -> VerificationReport
fn default() -> VerificationReport
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for VerificationReport
impl RefUnwindSafe for VerificationReport
impl Send for VerificationReport
impl Sync for VerificationReport
impl Unpin for VerificationReport
impl UnsafeUnpin for VerificationReport
impl UnwindSafe for VerificationReport
Blanket Implementations§
impl<T> Allocation for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more