// Copyright (c) Tribufu. All Rights Reserved. use chrono::NaiveDateTime; use serde::{Deserialize, Serialize}; use serde_with::{serde_as, DisplayFromStr}; #[serde_as] #[derive(Debug, Clone, Serialize, Deserialize)] pub struct Game { #[serde_as(as = "DisplayFromStr")] pub id: u64, pub name: String, pub description: Option, pub icon_url: Option, pub banner_url: Option, pub capsule_image_url: Option, pub library_image_url: Option, pub slug: Option, pub game_port: Option, pub query_port: Option, pub rcon_port: Option, pub steam_app_id: Option, pub steam_server_app_id: Option, pub rust_gamedig_id: Option, pub node_gamedig_id: Option, pub server_connect_url: Option, pub created: NaiveDateTime, pub updated: Option, }