Struct derbyjson::DerbyJSON [] [src]

pub struct DerbyJSON {
    pub version: Option<String>,
    pub metadata: Map<String, Value>,
    pub objecttype: ObjectType,
    pub teams: HashMap<String, Team>,
    pub periods: Vec<Period>,
    pub ruleset: Option<Ruleset>,
    pub venue: Option<Venue>,
    pub uuid: Vec<String>,
    pub notes: Vec<Note>,
    pub date: String,
    pub time: String,
    pub end_time: String,
    pub leagues: Option<Vec<League>>,
    pub timers: Timers,
    pub tournament: Option<String>,
    pub host_league: Option<String>,
    pub expulsions: Vec<Expulsion>,
    pub suspensions: Vec<String>,
    pub signatures: Vec<Value>,
    pub sanctioned: bool,
    pub association: Option<Association>,
}

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.

Fields

Methods

impl DerbyJSON
[src]

Create an empty DerbyJSON structure corresponding to a game. It fills in default/empty values for almost everything and creates two periods.