Validate

Decorate Arguments or OptionFlags to declare validation procedures. Can be used multiple times per entity.

struct Validate (
alias _validate
bool isEnabled = true
) {}

Parameters

_validate

Performs required validations and throws if a validation fails.

isEnabled

This validation will have no effect if set to false.

Meta