Struct vault::Player [] [src]

pub struct Player {
    pub id: u8,
    pub name: String,
    pub steam_id: u64,
    pub steam_id_str: String,
    pub team: u32,
    pub faction: String,
    pub commander: u32,
    pub items: Vec<Item>,
    pub cpm: f64,
}

This type represents a Company of Heroes 2 player entity as it appears in a CoH2 replay file.

Fields

Internal ID of player

Unicode name of player

64-bit Steam ID

Steam ID as string because JS has trouble with true 64-bit ints

Team the player belongs to

String representation of the player's faction

If it can be found, the server_id of the player's commander

A collection of the player's equipped items

If it can be calculated, the player's commands per minute

Methods

impl Player
[src]

Constructs a new Player with empty initial data.

Trait Implementations

impl Debug for Player
[src]

Formats the value using the given formatter.

impl Encodable for Player
[src]

Serialize a value using an Encoder.