Skip to main content

AsyncCheckOutcome

Trait AsyncCheckOutcome 

Source
pub trait AsyncCheckOutcome {
    // Required method
    fn into_async_result(
        self,
        field: &str,
        code: &str,
        reason: &str,
    ) -> AsyncCheckResult;
}
Expand description

Result types supported by #[check(resolve(...))], #[check(async_with(...))], and async #[pactum_rule].

Required Methods§

Source

fn into_async_result( self, field: &str, code: &str, reason: &str, ) -> AsyncCheckResult

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl AsyncCheckOutcome for bool

Source§

fn into_async_result( self, field: &str, code: &str, reason: &str, ) -> AsyncCheckResult

Source§

impl<E: IntoAsyncError> AsyncCheckOutcome for Result<(), E>

Source§

fn into_async_result( self, field: &str, code: &str, _reason: &str, ) -> AsyncCheckResult

Source§

impl<E: IntoAsyncError> AsyncCheckOutcome for Result<bool, E>

Source§

fn into_async_result( self, field: &str, code: &str, reason: &str, ) -> AsyncCheckResult

Implementors§