chyabrung-cli 0.2.1

The `chy` command line tool for Chyabrung: scaffolding, dev server with hot reload, builds, generators, migrations and one-command deploys
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! # Requests: the shape of incoming data, with validation rules
//!
//! Each struct describes what a client must send (a JSON body, a form or
//! query parameters) and the rules it must pass. Use it in a handler with
//! `Valid(Json(input)): Valid<Json<RegisterRequest>>`: invalid input is
//! rejected with a `422` and a message per field before your code runs.
//!
//! - Add a new file here for each feature (e.g. `comment.rs`) and list it below.
//! - Rules: `required`, `email`, `url`, `min`, `max`, `length`, `regex`,
//!   `custom`, `nested`, `message`. See the validation guide in the docs.

pub mod auth;
pub mod post;

pub use auth::{LoginRequest, RegisterRequest};
pub use post::{PageQuery, PostRequest};