Module validator

Source
Expand description

Validation for the validator crate. Requires the validator feature flag

Validator is a popular validation library for Rust.

You will need to import the validator crate in your Cargo.toml.

[dependencies]
validator = { version = "0.0.0", features = ["derive"] }
actix-web-validation = { version = "0.0.0", features = ["validator"]}

For usage examples, see the documentation for Validated

Structs§

Validated
A validated extactor.
ValidatedFut
Future that extracts and validates actix requests using the Actix Web FromRequest trait

Traits§

ValidatorErrorHandlerExt
Extension trait to provide a convenience method for adding custom error handler

Type Aliases§

ValidatorErrHandler