PostValidate

An @ArgValidator that runs the given Func during post-binding validation.

Notes: This validator is loosely typed, so if your validator function doesn't compile or doesn't work with whatever type you attach this validator to, you might get some long-winded errors.

@ArgValidator
struct PostValidate (
alias Func
) {}

Members

Functions

onValidate
Result!void onValidate(ParamT arg)
Undocumented in source. Be warned that the author may not have intended to support it.

Parameters

Func

The function that provides validation on a value.

Meta