Struct rust_sc2::game_info::PlayerInfo[][src]

pub struct PlayerInfo {
    pub id: u32,
    pub player_type: PlayerType,
    pub race_requested: Race,
    pub race_actual: Option<Race>,
    pub difficulty: Option<Difficulty>,
    pub ai_build: Option<AIBuild>,
    pub player_name: Option<String>,
}

Information about player.

Fields

id: u32

Player id.

player_type: PlayerType

Player type, can be Participant, Computer or Observer.

race_requested: Race

Requested race, can be random.

race_actual: Option<Race>

Actual race, it's never random, None for opponents.

difficulty: Option<Difficulty>

Difficulty, populated only for computer opponents.

ai_build: Option<AIBuild>

AI Build, populated only for computer opponents.

player_name: Option<String>

In-game name of player.

Trait Implementations

impl Clone for PlayerInfo[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,