rust_web_server/symbol/
mod.rs1#[cfg(test)]
2mod tests;
3
4pub struct Symbol {
5 pub new_line_carriage_return: &'static str,
6 pub new_line: &'static str,
7 pub carriage_return: &'static str,
8 pub empty_string: &'static str,
9 pub whitespace: &'static str,
10 pub equals: &'static str,
11 pub comma: &'static str,
12 pub hyphen: &'static str,
13 pub slash: &'static str,
14 pub semicolon: &'static str,
15 pub colon: &'static str,
16 pub number_sign: &'static str,
17 pub opening_square_bracket: &'static str,
18 pub closing_square_bracket: &'static str,
19 pub opening_curly_bracket: &'static str,
20 pub closing_curly_bracket: &'static str,
21 pub quotation_mark: &'static str,
22 pub underscore: &'static str,
23 pub single_quote: &'static str,
24 pub percent: &'static str,
25 pub exclamation_mark: &'static str,
26 pub dollar: &'static str,
27 pub ampersand: &'static str,
28 pub opening_bracket: &'static str,
29 pub closing_bracket: &'static str,
30 pub asterisk: &'static str,
31 pub plus: &'static str,
32 pub question_mark: &'static str,
33 pub at: &'static str,
34}
35
36pub const SYMBOL: Symbol = Symbol {
37 new_line: "\n",
38 carriage_return: "\r",
39 new_line_carriage_return: "\r\n",
40 empty_string: "",
41 whitespace: " ",
42 equals: "=",
43 comma: ",",
44 hyphen: "-",
45 slash: "/",
46 semicolon: ";",
47 colon: ":",
48 number_sign: "#",
49 opening_square_bracket: "[",
50 closing_square_bracket: "]",
51 opening_curly_bracket: "{",
52 closing_curly_bracket: "}",
53 quotation_mark: "\"",
54 underscore: "_",
55 single_quote: "'",
56 percent: "%",
57 exclamation_mark: "!",
58 dollar: "$",
59 ampersand: "&",
60 opening_bracket: "(",
61 closing_bracket: ")",
62 asterisk: "*",
63 plus: "+",
64 question_mark: "?",
65 at: "@",
66};