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:
[]
= "0.2.1"
Supported actix_web::web
extractors:
web::Json
web::Query
web::Path
Supported actix_web
version is 1.*
Example:
use ;
use Deserialize;
use ValidatedQuery;
use Validate;
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=19&response_type=Code"`.
License
actix-web-validator is licensed under MIT license (LICENSE or http://opensource.org/licenses/MIT)