[][src]Module boss::play_by_play

API Bindings for the MLB Play by Play API hosted at http://statsapi.mlb.com/api/v1/game/{game_pk}/playByPlay.
All data are subject to MLB Advanced Media copyright

There are differences with respect to MLB-level data as compared to Minor League data. This means that for fields that are MLB specific we'll have to wrap them in Option to signify they won't always be there. We want a unified data set, so we'll create one set of structs

From impls are built in a modular fashion, allowing us to flatten out the deserialization into simpler structs. Additionally, we'll take great care to convert all text into enums so that every single type will implement Copy, allowing us to efficiently flatten the entire file. This means we will ignore all free-form "description" fields. All the relevent data in the description are in other parts of the data, including whether the ball was hit hard. This leads to an incredibly efficient data structure.

Creating enums for all the text fields will also work as a defacto dictionary compression method, which will allow for super-fast queries, as well as very efficient storage.

Functions

parse_test_data