rust_web_server/json/
mod.rs1#[cfg(test)]
2mod tests;
3pub mod property;
4pub mod array;
5pub mod object;
6
7pub struct JSONType {
10 pub string: &'static str,
11 pub boolean: &'static str,
12 pub object: &'static str,
13 pub array: &'static str,
14 pub integer: &'static str,
15 pub number: &'static str,
16 pub null: &'static str,
17}
18
19pub const JSON_TYPE: JSONType = JSONType{
20 string: "String",
21 boolean: "bool",
22 object: "object",
23 array: "array",
24 integer: "i128",
25 number: "f64",
26 null: "null",
27};
28
29
30
31
32
33
34
35