use std::borrow::Cow; pub type ValidationResult = std::result::Result>; #[derive(Debug, PartialEq, Clone)] pub struct ValidationError { pub message: Cow<'static, str>, pub field: Cow<'static, str>, }