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

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.

When set to true, returns only matches with a result. When set to false, returns only matches without a result.

Sorts the collection in a particular order. DateAscending sort matches from oldest to newest and DateDescending sort matches from newest to oldest.

Returns matches that involves the given participant's id.

Returns matches from the filtered tournaments.

When set to true, it will include a summary of each game of the match.

Filter all matches scheduled before this date.

Filter all matches scheduled after this date.

Page requested of the list.

Methods

impl MatchFilter
[src]

A builder method for $field with Option type.

A builder method for $field with Option type.

A builder method for $field with Option type.

A builder method for $field with Option type.

A builder method for $field with Option type.

A builder method for $field with $field_type type.

A builder method for $field with Option type.

A builder method for $field with Option type.

A builder method for $field with Option type.

Trait Implementations

impl Debug for MatchFilter
[src]

Formats the value using the given formatter.

impl Clone for MatchFilter
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for MatchFilter
[src]

Returns the "default value" for a type. Read more