Function rocket_validation::validation_catcher
source · [−]Expand description
Catcher to return validation errors to the client
#[launch]
fn rocket() -> _ {
rocket::build()
.mount("/", routes![/*validated_hello*/])
/* right here ---->*/.register("/", catchers![rocket_validation::validation_catcher])
}