Skip to content

ValidateWithAttribute

1 min read

Import: import system.validation;

Read the usage guide for examples and common tasks. This reference lists the public declarations for this part of the library. See Reading API signatures for parameter and result notation.

ValidateWithAttribute

A synchronous field validator returning an optional error message.

public struct ValidateWithAttribute

validator

Synchronous validation function; returns None on success or an error message on failure.

public validator: DeclarationPath