Struct ball_dont_lie::stats::StatsQueryParams[][src]

pub struct StatsQueryParams {
    pub page: u32,
    pub per_page: u32,
    pub dates: Vec<String>,
    pub seasons: Vec<u32>,
    pub player_ids: Vec<u32>,
    pub game_ids: Vec<u32>,
    pub postseason: Option<bool>,
    pub start_date: Option<String>,
    pub end_date: Option<String>,
}
Expand description

Query Params for stats api request.

Fields

page: u32

Page number for pagiantion.

per_page: u32

Number of values per page. Max 100.

dates: Vec<String>

List of dates for filtering.

seasons: Vec<u32>

List of seasons for filtering.

player_ids: Vec<u32>

List of player ids for filtering.

game_ids: Vec<u32>

List of game ids for filtering.

postseason: Option<bool>

Boolean value indicating if postseason games should be included.

start_date: Option<String>

Start date for range of games.

end_date: Option<String>

End date for range of games.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.