Update README.md

This commit is contained in:
GengTeng
2023-06-17 22:35:38 +08:00
committed by GitHub
parent ba3b23a419
commit 594d15eb0d

View File

@@ -4,6 +4,10 @@ This crate provides a `Valid` type that can be used in combination with `Json`,
## Usage
```shell
cargo add axum-valid
```
```rust
use validator::Validate;
use serde::Deserialize;
@@ -29,4 +33,4 @@ pub async fn get_page_by_json(
assert!((1..=50).contains(&pager.page_size));
assert!((1..).contains(&pager.page_no));
}
```
```