diff options
Diffstat (limited to '')
| -rw-r--r-- | src/models/mod.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/models/mod.rs b/src/models/mod.rs index 0b083ff..5cca3ff 100644 --- a/src/models/mod.rs +++ b/src/models/mod.rs | |||
| @@ -9,6 +9,19 @@ pub struct Account { | |||
| 9 | } | 9 | } |
| 10 | 10 | ||
| 11 | #[derive(Debug, Clone, Serialize, Deserialize)] | 11 | #[derive(Debug, Clone, Serialize, Deserialize)] |
| 12 | #[allow(dead_code)] | ||
| 13 | pub struct Mod { | ||
| 14 | pub id: i64, | ||
| 15 | pub instance_id: i64, | ||
| 16 | pub filename: String, | ||
| 17 | pub display_name: Option<String>, | ||
| 18 | pub side: String, | ||
| 19 | pub accepted: bool, | ||
| 20 | pub rejection_reason: Option<String>, | ||
| 21 | pub created_at: String, | ||
| 22 | } | ||
| 23 | |||
| 24 | #[derive(Debug, Clone, Serialize, Deserialize)] | ||
| 12 | pub struct Instance { | 25 | pub struct Instance { |
| 13 | pub id: i64, | 26 | pub id: i64, |
| 14 | pub name: String, | 27 | pub name: String, |
| @@ -23,6 +36,7 @@ pub struct Instance { | |||
| 23 | pub gamemode: i32, | 36 | pub gamemode: i32, |
| 24 | pub max_players: i32, | 37 | pub max_players: i32, |
| 25 | pub pvp: bool, | 38 | pub pvp: bool, |
| 39 | pub whitelist_enabled: bool, | ||
| 26 | pub motd: String, | 40 | pub motd: String, |
| 27 | pub rcon_password: String, | 41 | pub rcon_password: String, |
| 28 | pub is_active: bool, | 42 | pub is_active: bool, |
