pub struct Check { /* private fields */ }Expand description
Builder that records suppressions. prove fails if any id was
suppressed — a proof must see every fatal.
Implementations§
Source§impl Check
impl Check
Sourcepub fn without(self, id: impl Into<String>) -> Self
pub fn without(self, id: impl Into<String>) -> Self
Record a rule id to suppress. Check::prove then fails — a proof must see every fatal.
Sourcepub fn prove<P: ProfileMarker>(
self,
invoice: Invoice,
) -> Result<Validated<P>, ProveError>
pub fn prove<P: ProfileMarker>( self, invoice: Invoice, ) -> Result<Validated<P>, ProveError>
Mint a Validated<P> only if nothing was suppressed and validation has no fatal.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Check
impl RefUnwindSafe for Check
impl Send for Check
impl Sync for Check
impl Unpin for Check
impl UnsafeUnpin for Check
impl UnwindSafe for Check
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