rskit-validation 0.2.0-alpha.2

Fluent field-level validator that collects errors and converts to AppError
Documentation
1
2
3
4
5
6
7
8
9
10
//! Field-level validation error type.

/// A single field validation failure.
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
pub struct FieldError {
    /// The name of the field that failed validation.
    pub field: String,
    /// Human-readable description of the failure.
    pub message: String,
}