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
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]
fn id<'a>(&'a mut self, id: MatchId) -> &'a mut Self
A builder method for $field with $field_type
type.
fn match_type<'a>(&'a mut self, match_type: MatchType) -> &'a mut Self
A builder method for $field with $field_type
type.
fn discipline_id<'a>(&'a mut self, discipline_id: DisciplineId) -> &'a mut Self
A builder method for $field with $field_type
type.
fn status<'a>(&'a mut self, status: MatchStatus) -> &'a mut Self
A builder method for $field with $field_type
type.
fn tournament_id<'a>(&'a mut self, tournament_id: TournamentId) -> &'a mut Self
A builder method for $field with $field_type
type.
fn number<'a>(&'a mut self, number: u64) -> &'a mut Self
A builder method for $field with $field_type
type.
fn stage_number<'a>(&'a mut self, stage_number: u64) -> &'a mut Self
A builder method for $field with $field_type
type.
fn group_number<'a>(&'a mut self, group_number: u64) -> &'a mut Self
A builder method for $field with $field_type
type.
fn round_number<'a>(&'a mut self, round_number: u64) -> &'a mut Self
A builder method for $field with $field_type
type.
fn date<'a>(&'a mut self, date: DateTime<FixedOffset>) -> &'a mut Self
A builder method for $field with $field_type
type.
Trait Implementations
impl Clone for Match
[src]
fn clone(&self) -> Match
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 Debug for Match
[src]
impl Eq for Match
[src]
impl Ord for Match
[src]
fn cmp(&self, __arg_0: &Match) -> Ordering
This method returns an Ordering
between self
and other
. Read more
impl PartialEq for Match
[src]
fn eq(&self, __arg_0: &Match) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Match) -> bool
This method tests for !=
.
impl PartialOrd for Match
[src]
fn partial_cmp(&self, __arg_0: &Match) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &Match) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &Match) -> 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: &Match) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &Match) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more