1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
use crate::error::ToDefaultMessage;
#[derive(Debug, serde::Serialize)]
pub struct UniqueItemsErrorParams {}
impl UniqueItemsErrorParams {
pub fn new() -> Self {
Self {}
}
}
impl ToDefaultMessage for UniqueItemsErrorParams {
fn to_default_message(&self) -> String {
format!("items must be unique.")
}
}