From 594d15eb0dd34bb612bb00cdf0a4ffd551b4c19a Mon Sep 17 00:00:00 2001 From: GengTeng Date: Sat, 17 Jun 2023 22:35:38 +0800 Subject: [PATCH] Update README.md --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7712fc1..907ed64 100644 --- a/README.md +++ b/README.md @@ -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)); } -``` \ No newline at end of file +```