[−][src]Struct toornament::MatchFilter
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]
pub fn featured(self, featured: bool) -> Self
[src]
A builder method for $field with Option
type.
pub fn has_result(self, has_result: bool) -> Self
[src]
A builder method for $field with Option
type.
pub fn sort(self, sort: DateSortFilter) -> Self
[src]
A builder method for $field with Option
type.
pub fn participant_id(self, participant_id: ParticipantId) -> Self
[src]
A builder method for $field with Option
type.
pub fn tournament_ids(self, tournament_ids: Vec<TournamentId>) -> Self
[src]
A builder method for $field with Option
type.
pub fn with_games(self, with_games: bool) -> Self
[src]
A builder method for $field with $field_type
type.
pub fn before_date(self, before_date: Date) -> Self
[src]
A builder method for $field with Option
type.
pub fn after_date(self, after_date: Date) -> Self
[src]
A builder method for $field with Option
type.
pub fn page(self, page: i64) -> Self
[src]
A builder method for $field with Option
type.
Trait Implementations
impl Clone for MatchFilter
[src]
fn clone(&self) -> MatchFilter
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for MatchFilter
[src]
impl Default for MatchFilter
[src]
fn default() -> MatchFilter
[src]
Auto Trait Implementations
impl RefUnwindSafe for MatchFilter
impl Send for MatchFilter
impl Sync for MatchFilter
impl Unpin for MatchFilter
impl UnwindSafe for MatchFilter
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> 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>,