[−][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
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 |