Macro requires

Source
macro_rules! requires {
    ($check:expr, $msg:literal $(,)?) => { ... };
    ($check:expr, $($arg:tt)+) => { ... };
}
Expand description

Return early with an UnprocessableEntity if a condition is not satisfied.