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: i64
Number of the opponent
participant: Option<Participant>
The participant represented in this opponent.
result: Option<MatchResultSimple>
The result of the opponent. This property is only available on "duel" match format.
rank: Option<i64>
Rank of the opponent, compared to other opponents' ranks. This property is only available on matches of type "ffa".
score: Option<i64>
The score of this game.
forfeit: bool
Whether the opponent has forfeited or not.
Trait Implementations
impl Clone for Opponent
[src]
fn clone(&self) -> Opponent
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Default for Opponent
[src]
impl Debug for Opponent
[src]
impl Eq for Opponent
[src]
impl Ord for Opponent
[src]
fn cmp(&self, __arg_0: &Opponent) -> Ordering
This method returns an Ordering
between self
and other
. Read more
impl PartialEq for Opponent
[src]
fn eq(&self, __arg_0: &Opponent) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Opponent) -> bool
This method tests for !=
.
impl PartialOrd for Opponent
[src]
fn partial_cmp(&self, __arg_0: &Opponent) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &Opponent) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &Opponent) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &Opponent) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &Opponent) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more