Struct chesscom_openapi::models::player_result::PlayerResult[][src]

pub struct PlayerResult {
    pub username: String,
    pub rating: i32,
    pub result: Result,
    pub id: String,
}

Fields

username: Stringrating: i32

The player’s rating at the start of the game

result: Result

Player result: * win - Win * checkmated - Checkmated * agreed - Draw agreed * repetition - Draw by repetition * timeout - Timeout * resigned - Resigned * stalemate - Stalemate * lose - Lose * insufficient - Insufficient material * 50 - Draw by 50-move rule * abandoned - abandoned * kingofthehill - Opponent king reached the hill * threecheck - Checked for the 3rd time * timevsinsufficient - Draw by timeout vs insufficient material * bughousepartnerlose - Bughouse partner lost

id: String

URL of this player’s profile

Implementations

impl PlayerResult[src]

pub fn new(
    username: String,
    rating: i32,
    result: Result,
    id: String
) -> PlayerResult
[src]

Trait Implementations

impl Clone for PlayerResult[src]

impl Debug for PlayerResult[src]

impl<'de> Deserialize<'de> for PlayerResult[src]

impl PartialEq<PlayerResult> for PlayerResult[src]

impl Serialize for PlayerResult[src]

impl StructuralPartialEq for PlayerResult[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

impl<T> Instrument for T[src]

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

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.