Crate derbyjson [−] [src]
DerbyJSON parser, based on serde.
Structs
Certification | |
DerbyJSON |
The root DerbyJSON object. This can store information about a game, or about a league or a team. Which one it is is determined by the "objecttype" field and determines which fields are valid. |
Expulsion | |
GhostPoint |
Represents a "ghost point" scored by means other than passing an opponent's hips |
Involved | |
Jam |
Periods are broken into Jams, which are the basic unit of play for roller derby. |
League |
Information on a league (collection of teams) |
Logo |
Represents a team or league logo. Each field may contain a URL to the appropriate size/style of team logo. |
Note |
A note about something that happened. These notes may be attached to quite a few objects found elsewhere in the spec. |
Period | |
Person |
Information about a person, whether a skater or official |
Rosters |
A subset of the general DerbyJSON object, just storing information on team/league rosters. |
Ruleset |
Information about the ruleset used for a game. |
Substitute | |
Team |
Information on a team (collection of skaters or officials) |
Timeout |
A stoppage of the game clock, whether for a team timeout, official review, or official timeout. |
Timer | |
Timers | |
Venue |
Information about a game venue. |
Enums
Association | |
ClockEvent |
A thing that happens during a period, either a jam or a timeout, or possibly just a note. |
Error | |
GhostPointType |
Type of ghost point. Lap of jammer, Jammer in box, Blocker in box, Pivot in box, Not on the track, Out of play, Ghost point of unknown causes |
JamEvent |
This enum represents an event that happens during a game of derby, and is the main container for storing game data. Points, penalties, lineups, and just about anything else that is associated with a jam goes into a Jam Event of some sort. Each event is tagged with an event type, which determined what information it contains. |
LeaveTrackReason | |
ObjectType | |
PenaltySeverity |
Penalty severity. |
Position |
A skater's position in a jam. |
PrematureExitReason |
Reason why a skater left the penalty box early: due to officiating error, skater leaving the box early, a rescinded penalty, or a skater who mistakenly reported to the box. |
TeamLevel | |
TeamType | |
Timestamp |
Constants
VERSION |
Version of DerbyJSON supported |
Functions
load_roster |
Load a roster from the given input stream. This specifically checks that the loaded DerbyJSON is a valid roster object. |