pub trait PlayerIdentity {
// Required methods
fn player_id(&self) -> i64;
fn username(&self) -> &str;
fn avatar_url(&self) -> &str;
}Expand description
Core player identity - the immutable parts that identify a player.
This is embedded in all player-related structs to avoid field duplication. Contains the fields that are constant for a player’s session.
Required Methods§
Sourcefn avatar_url(&self) -> &str
fn avatar_url(&self) -> &str
Get avatar URL.