Skip to content

std::validate

Status: experimental

Trait-based field validation: implement Validate, collect FieldErrors into Errors.

API details and source

The implementation source contains the complete declarations and implementation notes. The table below lists canonical Gossamer call signatures; every item name links directly to its implementation file.

Item Canonical signature or declaration Description
Errors type Errors Aggregated FieldError set, indexable by dotted path.
FieldError type FieldError One field-scoped validation failure: dotted path, message, optional code.
Validate trait Validate Implement on a struct to declare field-level validation rules.