[][src]Struct toornament::Match

pub struct Match {
    pub id: MatchId,
    pub match_type: MatchType,
    pub discipline_id: DisciplineId,
    pub status: MatchStatus,
    pub tournament_id: TournamentId,
    pub number: u64,
    pub stage_number: u64,
    pub group_number: u64,
    pub round_number: u64,
    pub date: DateTime<FixedOffset>,
    pub opponents: Opponents,
    pub games: Option<Games>,
}

Tournament or discipline match definition.

Fields

id: MatchId

A hexadecimal unique identifier for this match. Example: "5617bb3af3df95f2318b4567"

match_type: MatchType

Type of match: "duel" means only two opponents are involved; "ffa" means more than two opponents are involved. Possible values: duel, ffa

discipline_id: DisciplineId

The discipline unique identifier of the match. Example: "my_discipline"

status: MatchStatus

Status of the match: "pending" implies it has not yet started; "running" means it has started but not yet ended; "completed" indicates the match is finished. Possible values: pending, running, completed

tournament_id: TournamentId

The tournament's unique identifier of this match. Example: "5608fd12140ba061298b4569"

number: u64

Number of this match. Example: 1

stage_number: u64

Stage number of this match. Example: 1

group_number: u64

Group number of this match. Example: 1

round_number: u64

Round number of this match. Example: 1

date: DateTime<FixedOffset>

Date of this match, either expected or actual. This value is represented as an ISO 8601 date containing the date, the time and the time zone. Example: "2015-09-06T00:10:00-0600"

opponents: Opponents

List of the opponents involved in this match.

games: Option<Games>

This property is added when the parameter "with_games" is enabled.

Methods

impl Match[src]

pub fn id(self, id: MatchId) -> Self[src]

A builder method for $field with $field_type type.

pub fn match_type(self, match_type: MatchType) -> Self[src]

A builder method for $field with $field_type type.

pub fn discipline_id(self, discipline_id: DisciplineId) -> Self[src]

A builder method for $field with $field_type type.

pub fn status(self, status: MatchStatus) -> Self[src]

A builder method for $field with $field_type type.

pub fn tournament_id(self, tournament_id: TournamentId) -> Self[src]

A builder method for $field with $field_type type.

pub fn number(self, number: u64) -> Self[src]

A builder method for $field with $field_type type.

pub fn stage_number(self, stage_number: u64) -> Self[src]

A builder method for $field with $field_type type.

pub fn group_number(self, group_number: u64) -> Self[src]

A builder method for $field with $field_type type.

pub fn round_number(self, round_number: u64) -> Self[src]

A builder method for $field with $field_type type.

pub fn date(self, date: DateTime<FixedOffset>) -> Self[src]

A builder method for $field with $field_type type.

impl Match[src]

pub fn iter_tournament<'a>(
    &self,
    client: &'a Toornament
) -> TournamentMatchIter<'a>
[src]

Returns iter for the tournament match

pub fn into_iter_tournament(self, client: &Toornament) -> TournamentMatchIter[src]

Converts into iter for the tournament match

pub fn iter_discipline<'a>(
    &self,
    client: &'a Toornament
) -> DisciplineMatchesIter<'a>
[src]

Returns iter for the discipline matches

pub fn into_iter_discipline(self, client: &Toornament) -> DisciplineMatchesIter[src]

Converts into iter for the discipline matches

Trait Implementations

impl Clone for Match[src]

impl Debug for Match[src]

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

impl Eq for Match[src]

impl Ord for Match[src]

impl PartialEq<Match> for Match[src]

impl PartialOrd<Match> for Match[src]

impl Serialize for Match[src]

impl StructuralEq for Match[src]

impl StructuralPartialEq for Match[src]

Auto Trait Implementations

impl RefUnwindSafe for Match

impl Send for Match

impl Sync for Match

impl Unpin for Match

impl UnwindSafe for Match

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.