runique 3.0.2

A Django-inspired web framework for Rust with ORM, templates, and comprehensive security middleware
Documentation
1
2
3
4
5
6
7
8
9
10
//! `LengthConstraint` — min/max constraint on the length of a text field.
use serde::{Deserialize, Serialize};

/// A min or max length bound (character count) with an optional custom error
/// message shown when the constraint is violated.
#[derive(Serialize, Deserialize, Clone, Debug, Default)]
pub struct LengthConstraint {
    pub value: u32,
    pub message: Option<String>,
}