Struct toornament::Opponent [] [src]

pub struct Opponent {
    pub number: i64,
    pub participant: Option<Participant>,
    pub result: Option<MatchResultSimple>,
    pub rank: Option<i64>,
    pub score: Option<i64>,
    pub forfeit: bool,
}

An opponent involved in a match.

Fields

Number of the opponent

The participant represented in this opponent.

The result of the opponent. This property is only available on "duel" match format.

Rank of the opponent, compared to other opponents' ranks. This property is only available on matches of type "ffa".

The score of this game.

Whether the opponent has forfeited or not.

Trait Implementations

impl Clone for Opponent
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for Opponent
[src]

Returns the "default value" for a type. Read more

impl Debug for Opponent
[src]

Formats the value using the given formatter.

impl Eq for Opponent
[src]

impl Ord for Opponent
[src]

This method returns an Ordering between self and other. Read more

impl PartialEq for Opponent
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl PartialOrd for Opponent
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more