Struct toornament::MatchFilter
[−]
[src]
pub struct MatchFilter { pub featured: Option<bool>, pub has_result: Option<bool>, pub sort: Option<DateSortFilter>, pub participant_id: Option<ParticipantId>, pub tournament_ids: Option<Vec<TournamentId>>, pub with_games: bool, pub before_date: Option<Date>, pub after_date: Option<Date>, pub page: Option<i64>, }
A filter for match endpoints
Fields
featured: Option<bool>
When set to true
, returns matches from featured tournaments in the collection.
When set to false
, it returns matches from tournaments without featured.
Featured tournaments are tagged by Toornament as major tournaments for a given discipline.
has_result: Option<bool>
When set to true
, returns only matches with a result.
When set to false
, returns only matches without a result.
sort: Option<DateSortFilter>
Sorts the collection in a particular order. DateAscending
sort matches from oldest to
newest and DateDescending
sort matches from newest to oldest.
participant_id: Option<ParticipantId>
Returns matches that involves the given participant's id.
tournament_ids: Option<Vec<TournamentId>>
Returns matches from the filtered tournaments.
with_games: bool
When set to true
, it will include a summary of each game of the match.
before_date: Option<Date>
Filter all matches scheduled before this date.
after_date: Option<Date>
Filter all matches scheduled after this date.
page: Option<i64>
Page requested of the list.
Methods
impl MatchFilter
[src]
fn featured<'a>(&'a mut self, featured: bool) -> &'a mut Self
A builder method for $field with Option
type.
fn has_result<'a>(&'a mut self, has_result: bool) -> &'a mut Self
A builder method for $field with Option
type.
fn sort<'a>(&'a mut self, sort: DateSortFilter) -> &'a mut Self
A builder method for $field with Option
type.
fn participant_id<'a>(
&'a mut self,
participant_id: ParticipantId
) -> &'a mut Self
&'a mut self,
participant_id: ParticipantId
) -> &'a mut Self
A builder method for $field with Option
type.
fn tournament_ids<'a>(
&'a mut self,
tournament_ids: Vec<TournamentId>
) -> &'a mut Self
&'a mut self,
tournament_ids: Vec<TournamentId>
) -> &'a mut Self
A builder method for $field with Option
type.
fn with_games<'a>(&'a mut self, with_games: bool) -> &'a mut Self
A builder method for $field with $field_type
type.
fn before_date<'a>(&'a mut self, before_date: Date) -> &'a mut Self
A builder method for $field with Option
type.
fn after_date<'a>(&'a mut self, after_date: Date) -> &'a mut Self
A builder method for $field with Option
type.
fn page<'a>(&'a mut self, page: i64) -> &'a mut Self
A builder method for $field with Option
type.
Trait Implementations
impl Debug for MatchFilter
[src]
impl Clone for MatchFilter
[src]
fn clone(&self) -> MatchFilter
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 Default for MatchFilter
[src]
fn default() -> MatchFilter
Returns the "default value" for a type. Read more