[][src]Struct toornament::Opponent

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]

impl Debug for Opponent[src]

impl Default for Opponent[src]

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

impl Eq for Opponent[src]

impl Ord for Opponent[src]

impl PartialEq<Opponent> for Opponent[src]

impl PartialOrd<Opponent> for Opponent[src]

impl Serialize for Opponent[src]

impl StructuralEq for Opponent[src]

impl StructuralPartialEq for Opponent[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: Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> 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.