Gemention/src/validation/mod.rs

14 lines
263 B
Rust

pub(crate) mod c2s;
pub trait Validation {
type Error;
fn validate(self) -> Result<Self, Self::Error> where Self: Sized;
}
pub trait AsyncValidation {
type Error;
async fn validate_async(self) -> Result<Self, Self::Error> where Self: Sized;
}