pub trait Guard {
// Required method
fn check(
&self,
ctx: &Context<'_>,
) -> impl Future<Output = Result<()>> + Send;
}
Expand description
Field guard
Guard is a pre-condition for a field that is resolved if Ok(())
is
returned, otherwise an error is returned.
Required Methods§
Object Safety§
This trait is not object safe.