pub struct Player {
pub id: Uuid,
pub discord_id: Option<String>,
pub username: String,
pub status: Status,
pub current_server: Option<String>,
pub bio: Option<String>,
}Expand description
Player : Represents a player profile.
Fields§
§id: UuidThe unique identifier of the player.
discord_id: Option<String>The Discord user ID linked to the player, or null if no Discord account is linked or the API key lacks the players:read-details scope.
username: StringThe username of the player.
status: StatusThe online status of the player.
current_server: Option<String>The server to which the player is currently connected, or null if the player is offline.
bio: Option<String>The player’s biography of up to 160 characters, or null if it is not set.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Player
impl<'de> Deserialize<'de> for Player
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
impl StructuralPartialEq for Player
Auto Trait Implementations§
impl Freeze for Player
impl RefUnwindSafe for Player
impl Send for Player
impl Sync for Player
impl Unpin for Player
impl UnsafeUnpin for Player
impl UnwindSafe for Player
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