pub struct PlayerInfo {
pub remote_id: RemoteId,
pub stats: Option<HashMap<String, HeaderProp>>,
pub name: String,
}Expand description
PlayerInfo struct provides detailed information about a specific player in the replay.
This includes player’s unique remote ID, player stats if available, and their name.
Fields§
§remote_id: RemoteIdThe unique remote ID of the player. This could be their online ID or local ID.
stats: Option<HashMap<String, HeaderProp>>An optional HashMap containing player-specific stats.
The keys of this HashMap are the names of the stats,
and the values are the corresponding HeaderProp instances.
name: StringThe name of the player as represented in the replay.
Trait Implementations§
Source§impl Clone for PlayerInfo
impl Clone for PlayerInfo
Source§fn clone(&self) -> PlayerInfo
fn clone(&self) -> PlayerInfo
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 PlayerInfo
impl Debug for PlayerInfo
Source§impl PartialEq for PlayerInfo
impl PartialEq for PlayerInfo
Source§impl Serialize for PlayerInfo
impl Serialize for PlayerInfo
impl StructuralPartialEq for PlayerInfo
Auto Trait Implementations§
impl Freeze for PlayerInfo
impl RefUnwindSafe for PlayerInfo
impl Send for PlayerInfo
impl Sync for PlayerInfo
impl Unpin for PlayerInfo
impl UnwindSafe for PlayerInfo
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