Expand description
§koruma-core
Core traits and types for the koruma validation ecosystem. Most users should depend on
koruma instead of this crate directly.
§What it provides
Validate<T>: implemented by validator structs.ValidationError: implemented by generated error structs.BuilderWithValue<T>: implemented by#[koruma::validator]builders forwith_value().ValidateExt: used for nested/newtype validation.NewtypeValidation: marker for newtype structs with transparent error access.
Traits§
- Builder
With Value - Trait for validator builders that can receive the value being validated.
- Newtype
Validation - Marker trait for newtype structs (single-field wrappers) that derive
Koruma. - Validate
- Trait for types that can validate a value of type
T. - Validate
Ext - Trait for structs that derive
Korumaand have avalidate()method. - Validation
Error - Trait for validation error structs that have no errors.