1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/// Lowercase name of the `Controller` template type and its directory.
pub const TEMPLATE_TYPE_CONTROLLER: &str = "controller";
/// Lowercase name of the `Domain` template type and its directory.
pub const TEMPLATE_TYPE_DOMAIN: &str = "domain";
/// Lowercase name of the `Exception` template type and its directory.
pub const TEMPLATE_TYPE_EXCEPTION: &str = "exception";
/// Lowercase name of the `Mapper` template type and its directory.
pub const TEMPLATE_TYPE_MAPPER: &str = "mapper";
/// Lowercase name of the `Model` template type and its directory.
pub const TEMPLATE_TYPE_MODEL: &str = "model";
/// Lowercase name of the `Repository` template type and its directory.
pub const TEMPLATE_TYPE_REPOSITORY: &str = "repository";
/// Lowercase name of the `Service` template type and its directory.
pub const TEMPLATE_TYPE_SERVICE: &str = "service";
/// Lowercase name of the `Utils` template type and its directory.
pub const TEMPLATE_TYPE_UTILS: &str = "utils";
/// Lowercase name of the `View` template type and its directory.
pub const TEMPLATE_TYPE_VIEW: &str = "view";
/// Lowercase name of the `Application` model sub type and its directory.
pub const MODEL_SUB_TYPE_APPLICATION: &str = "application";
/// Lowercase name of the `Request` model sub type and its directory.
pub const MODEL_SUB_TYPE_REQUEST: &str = "request";
/// Lowercase name of the `Response` model sub type and its directory.
pub const MODEL_SUB_TYPE_RESPONSE: &str = "response";
/// Directory that holds every generated component tree.
pub const TEMPLATE_CONFIG_BASE_DIRECTORY: &str = "./application";
/// Keyword file name of the `const` module inside a generated directory.
pub const MODULE_NAME_CONST: &str = "const";
/// Keyword file name of the `enum` module inside a generated directory.
pub const MODULE_NAME_ENUM: &str = "enum";
/// Keyword file name of the `fn` module inside a generated directory.
pub const MODULE_NAME_FN: &str = "fn";
/// Keyword file name of the `impl` module inside a generated directory.
pub const MODULE_NAME_IMPL: &str = "impl";
/// Keyword file name of the `static` module inside a generated directory.
pub const MODULE_NAME_STATIC: &str = "static";
/// Keyword file name of the `struct` module inside a generated directory.
pub const MODULE_NAME_STRUCT: &str = "struct";
/// File name of the generated module declaration file.
pub const FILE_NAME_MOD_RS: &str = "mod.rs";
/// File name of the generated `const` file.
pub const FILE_NAME_CONST_RS: &str = "const.rs";
/// File name of the generated `enum` file.
pub const FILE_NAME_ENUM_RS: &str = "enum.rs";
/// File name of the generated `fn` file.
pub const FILE_NAME_FN_RS: &str = "fn.rs";
/// File name of the generated `impl` file.
pub const FILE_NAME_IMPL_RS: &str = "impl.rs";
/// File name of the generated `static` file.
pub const FILE_NAME_STATIC_RS: &str = "static.rs";
/// File name of the generated `struct` file.
pub const FILE_NAME_STRUCT_RS: &str = "struct.rs";
/// Opening delimiter of the aggregated `pub use` line in a generated `mod.rs`.
pub const PUB_USE_PREFIX: &str = "pub use {";
/// First line written into every generated keyword file.
pub const KEYWORD_FILE_HEADER: &str = "use super::*;\n";
/// Message reported when a model template is requested without a sub type.
pub const ERROR_MISSING_MODEL_SUB_TYPE: &str = "Missing model subtype";
/// Program used to format the freshly generated template code.
pub const CARGO_FMT_PROGRAM: &str = "cargo";