1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
/// Структура данных профиля #[derive(Debug)] pub struct Profile { pub entity_id: Option<i32>, pub game_mode: String, pub ping: i32, } impl Default for Profile { fn default() -> Self { Self { entity_id: None, game_mode: "unknown".to_string(), ping: 0, } } }