Skip to main content

rust_web_server/json/
mod.rs

1#[cfg(test)]
2mod tests;
3pub mod property;
4pub mod array;
5pub mod object;
6
7#[cfg(feature = "serde")]
8mod extractor;
9#[cfg(feature = "serde")]
10pub use extractor::Json;
11
12// TODO: wip
13
14pub struct JSONType {
15    pub string: &'static str,
16    pub boolean: &'static str,
17    pub object: &'static str,
18    pub array: &'static str,
19    pub integer: &'static str,
20    pub number: &'static str,
21    pub null: &'static str,
22}
23
24pub const JSON_TYPE: JSONType = JSONType{
25    string: "String",
26    boolean: "bool",
27    object: "object",
28    array: "array",
29    integer: "i128",
30    number: "f64",
31    null: "null",
32};
33
34
35
36
37
38
39
40