chyabrung-cli 0.2.4

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
17
//! # 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. Take it as the **last**
//! argument of a handler: `async fn register(input: RegisterRequest)`.
//! Invalid input is rejected with a `422` and a message per field before
//! your code runs.
//!
//! - Create one with `chy make:request Comment` (adds `CommentRequest` here).
//! - 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};