koruma-core 0.7.1

Core traits and types for koruma validation
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# koruma-core

[![Docs](https://docs.rs/koruma-core/badge.svg)](https://docs.rs/koruma-core/)
[![Crates.io](https://img.shields.io/crates/v/koruma-core.svg)](https://crates.io/crates/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 for `with_value()`.
- `ValidateExt`: used for nested/newtype validation.
- `NewtypeValidation`: marker for newtype structs with transparent error access.