actix-web-validator

This crate is a Rust library for providing validation mechanism to actix-web with Validator crate
Installation
This crate works with Cargo and can be found on
crates.io with a Cargo.toml like:
[]
= "5.0.1"
= { = "0.16", = ["derive"] }
= { = "1", = ["derive"] }
Supported extractors:
actix_web::web::Jsonactix_web::web::Queryactix_web::web::Pathactix_web::web::Formserde_qs::actix::QsQuery
Supported actix_web versions:
- For actix-web-validator
0.*supported version of actix-web is1.* - For actix-web-validator
1.*supported version of actix-web is2.* - For actix-web-validator
2.*supported version of actix-web is3.* - For actix-web-validator
3+supported version of actix-web is4.*
Example:
use ;
use Deserialize;
use Query;
use Validate;
// Use `Query` extractor for query information (and destructure it within the signature).
// This handler gets called only if the request's query string contains a `id` and
// `response_type` fields.
// The correct request for this handler would be `/index.html?id=1234&response_type=Code"`.
async
License
actix-web-validator is licensed under MIT license (LICENSE or http://opensource.org/licenses/MIT)