/// A custom error type for validation errors in the models module.
#[derive(Debug, thiserror::Error)]#[error("Validation failed: {message}")]pubstructValidationError{pubmessage: String,
}implValidationError{pubfnnew(message: impl Into<String>)->Self{Self{
message: message.into(),}}}