//! `LengthConstraint` — min/max constraint on the length of a text field.
useserde::{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)]pubstructLengthConstraint{pubvalue:u32,
pubmessage:Option<String>,
}