update to 0.5.0
This commit is contained in:
13
src/yaml.rs
Normal file
13
src/yaml.rs
Normal 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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user