fix README.md

This commit is contained in:
gengteng
2023-06-06 13:45:04 +08:00
parent 8e8e151e45
commit aec574b768

View File

@@ -1,6 +1,6 @@
# axum-valid # axum-valid
The Valid crate provides a `Valid` type that can be used in combination with `Json`, `Path`, `Query`, and `Form` types to validate the entities that implement the `Validate` trait. This crate provides a `Valid` type that can be used in combination with `Json`, `Path`, `Query`, and `Form` types to validate the entities that implement the `Validate` trait.
## Usage ## Usage
@@ -9,7 +9,6 @@ use validator::Validate;
use serde::Deserialize; use serde::Deserialize;
#[derive(Debug, Validate, Deserialize)] #[derive(Debug, Validate, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Pager { pub struct Pager {
#[validate(range(min = 1, max = 50))] #[validate(range(min = 1, max = 50))]
pub page_size: usize, pub page_size: usize,