[−][src]Struct toornament::Match
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]
&self,
client: &'a Toornament
) -> TournamentMatchIter<'a>
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]
&self,
client: &'a Toornament
) -> DisciplineMatchesIter<'a>
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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for Match
[src]
impl Ord for Match
[src]
fn cmp(&self, other: &Match) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Match> for Match
[src]
impl PartialOrd<Match> for Match
[src]
fn partial_cmp(&self, other: &Match) -> Option<Ordering>
[src]
fn lt(&self, other: &Match) -> bool
[src]
fn le(&self, other: &Match) -> bool
[src]
fn gt(&self, other: &Match) -> bool
[src]
fn ge(&self, other: &Match) -> bool
[src]
impl Serialize for Match
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,