ValidatorRef

Corresponds to the dorm.annotations.constructValue and dorm.annotations.constructValue UDAs.

A global function that is compiled into the executable through the call of dorm.declarative.processModelsToDeclarations generating the InternalAnnotation values. Manually constructing this function is not required, use the dorm.declarative.entrypoint.RegisterModels mixin instead.

The functions take in a Model (class) instance and assert it is the correct model class type that it was registered with.

struct ValidatorRef {}

Members

Variables

rid
string rid;

This function calls the UDA specified lambda with the field as argument and returns its return value, with the code assuming it is a boolean. (a compiler error will occur if it cannot implicitly convert to bool)

Meta