pub struct LobbySnapshot {
pub lobby_id: String,
pub lobby_type: LobbyType,
pub lobby_code: Option<String>,
pub players: Vec<LobbyPlayerInfo>,
pub games: Vec<LobbyGameInfo>,
pub max_players: u8,
}Expand description
Complete lobby state snapshot.
Fields§
§lobby_id: String§lobby_type: LobbyType§lobby_code: Option<String>§players: Vec<LobbyPlayerInfo>§games: Vec<LobbyGameInfo>§max_players: u8Maximum players allowed
Trait Implementations§
Source§impl Clone for LobbySnapshot
impl Clone for LobbySnapshot
Source§fn clone(&self) -> LobbySnapshot
fn clone(&self) -> LobbySnapshot
Returns a duplicate of the value. Read more
1.0.0 · 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 LobbySnapshot
impl Debug for LobbySnapshot
Source§impl<'de> Deserialize<'de> for LobbySnapshot
impl<'de> Deserialize<'de> for LobbySnapshot
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 LobbySnapshot
impl RefUnwindSafe for LobbySnapshot
impl Send for LobbySnapshot
impl Sync for LobbySnapshot
impl Unpin for LobbySnapshot
impl UnwindSafe for LobbySnapshot
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