update to 0.5.0

This commit is contained in:
gengteng
2023-08-04 18:50:02 +08:00
parent f3f0171e72
commit d95e04b4d4
19 changed files with 836 additions and 292 deletions

13
src/yaml.rs Normal file
View File

@@ -0,0 +1,13 @@
//! # Implementation of the `HasValidate` trait for the `Yaml` extractor.
//!
use crate::HasValidate;
use axum_yaml::Yaml;
use validator::Validate;
impl<T: Validate> HasValidate for Yaml<T> {
type Validate = T;
fn get_validate(&self) -> &T {
&self.0
}
}