pub struct LobbyGameInfo {
pub game_id: String,
pub game_type: GameType,
pub current_round: i32,
pub max_rounds: i32,
pub players: Vec<LobbyGamePlayerInfo>,
}Expand description
Game info as shown in lobby games list.
Fields§
§game_id: String§game_type: GameTypeWhich game type / pool this game belongs to (Open/Sandbox/Adventure), so clients can distinguish concurrent games in one lobby.
current_round: i32§max_rounds: i32§players: Vec<LobbyGamePlayerInfo>Trait Implementations§
Source§impl Clone for LobbyGameInfo
impl Clone for LobbyGameInfo
Source§fn clone(&self) -> LobbyGameInfo
fn clone(&self) -> LobbyGameInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LobbyGameInfo
impl Debug for LobbyGameInfo
Source§impl<'de> Deserialize<'de> for LobbyGameInfo
impl<'de> Deserialize<'de> for LobbyGameInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LobbyGameInfo
impl RefUnwindSafe for LobbyGameInfo
impl Send for LobbyGameInfo
impl Sync for LobbyGameInfo
impl Unpin for LobbyGameInfo
impl UnsafeUnpin for LobbyGameInfo
impl UnwindSafe for LobbyGameInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more