Struct toornament::Match [] [src]

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

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

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

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

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

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

Number of this match. Example: 1

Stage number of this match. Example: 1

Group number of this match. Example: 1

Round number of this match. Example: 1

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"

List of the opponents involved in this match.

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

Methods

impl Match
[src]

A builder method for $field with $field_type type.

A builder method for $field with $field_type type.

A builder method for $field with $field_type type.

A builder method for $field with $field_type type.

A builder method for $field with $field_type type.

A builder method for $field with $field_type type.

A builder method for $field with $field_type type.

A builder method for $field with $field_type type.

A builder method for $field with $field_type type.

A builder method for $field with $field_type type.

Trait Implementations

impl Clone for Match
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Match
[src]

Formats the value using the given formatter.

impl Eq for Match
[src]

impl Ord for Match
[src]

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

impl PartialEq for Match
[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 Match
[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