1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
use crate::types::server_type::ServerType;
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Debug)]
pub struct StatusResponse {
pub success: bool,
pub session: Session,
}
#[derive(Serialize, Deserialize, Debug)]
pub struct Session {
pub online: bool,
#[serde(rename = "gameType")]
pub game_type: Option<ServerType>,
pub mode: Option<String>,
pub map: Option<String>,
}