pub struct GameSummary {
pub game_id: String,
pub state: GameState,
pub current_round: u8,
pub max_rounds: u8,
pub player_count: u8,
pub spectator_count: u8,
}Expand description
Summary of a game visible from the lobby.
Fields§
§game_id: String§state: GameState§current_round: u8§max_rounds: u8§player_count: u8§spectator_count: u8Trait Implementations§
Source§impl Clone for GameSummary
impl Clone for GameSummary
Source§fn clone(&self) -> GameSummary
fn clone(&self) -> GameSummary
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 GameSummary
impl Debug for GameSummary
Source§impl<'de> Deserialize<'de> for GameSummary
impl<'de> Deserialize<'de> for GameSummary
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 GameSummary
impl RefUnwindSafe for GameSummary
impl Send for GameSummary
impl Sync for GameSummary
impl Unpin for GameSummary
impl UnwindSafe for GameSummary
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