rapid-web 0.4.9

A simple Rust server for the Rapid framework.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use serde::{Deserialize, Serialize};

#[derive(Debug, Serialize, Deserialize)]
/// A union type that is used as a simple target for the Rapid compiler to generate typescript types for route handlers
///
/// # Example
/// ```
/// use rapid_web::types::Union;
///
/// type RapidOutput = Union<String, ErrorJsonBody>;
/// ```
pub struct Union<O, E> {
	pub output: O,
	pub error: E,
}