pub struct LobbyPlayerInfo {
pub user_id: i64,
pub username: String,
pub avatar_url: Option<String>,
pub banner_url: Option<String>,
pub accent_color: Option<i32>,
pub current_game_pool: Option<GameType>,
pub active_game_id: Option<String>,
pub spectate_game_id: Option<String>,
}Expand description
Player information in the lobby (pre-game).
Fields§
§user_id: i64User ID
username: String§avatar_url: Option<String>Profile banner URL (Discord CDN)
accent_color: Option<i32>Profile accent color (integer representation)
current_game_pool: Option<GameType>The player’s status within a game pool, if they are in one.
active_game_id: Option<String>Game they are in, if any
spectate_game_id: Option<String>Game they are spectating, if any
Trait Implementations§
Source§impl Clone for LobbyPlayerInfo
impl Clone for LobbyPlayerInfo
Source§fn clone(&self) -> LobbyPlayerInfo
fn clone(&self) -> LobbyPlayerInfo
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 LobbyPlayerInfo
impl Debug for LobbyPlayerInfo
Source§impl<'de> Deserialize<'de> for LobbyPlayerInfo
impl<'de> Deserialize<'de> for LobbyPlayerInfo
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 LobbyPlayerInfo
impl RefUnwindSafe for LobbyPlayerInfo
impl Send for LobbyPlayerInfo
impl Sync for LobbyPlayerInfo
impl Unpin for LobbyPlayerInfo
impl UnwindSafe for LobbyPlayerInfo
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