creating structs, enums, figuring out networking rules
This commit is contained in:
parent
6836cbf72e
commit
07f8985f19
4 changed files with 72 additions and 2 deletions
14
src/shared_enums.rs
Normal file
14
src/shared_enums.rs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
pub enum ContentType {
|
||||
Text(TextType),
|
||||
Aplication(ApplicationType),
|
||||
}
|
||||
|
||||
pub enum TextType {
|
||||
Html,
|
||||
Css,
|
||||
Javascript,
|
||||
}
|
||||
|
||||
pub enum ApplicationType {
|
||||
Json,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue