Initial commit.

This commit is contained in:
Florian THIERRY
2026-07-13 21:57:58 +02:00
commit b5a95b0fa3
49 changed files with 11243 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
use crate::server_mode::ServerMode::{Mocked, Real};
pub enum ServerMode {
Mocked,
Real
}
impl ServerMode {
pub fn from_string(value: String) -> Option<ServerMode> {
match value.as_str() {
"mocked" => Some(Mocked),
"real" => Some(Real),
_ => None
}
}
}