Enum derbyjson::JamEvent [] [src]

pub enum JamEvent {
    Lineup {
        skater: String,
        start_in_box: bool,
        position: Position,
    },
    PackLap {
        timestamp: Option<Timestamp>,
        count: Option<u8>,
    },
    Penalty {
        timestamp: Option<Timestamp>,
        skater: String,
        penalty: String,
        severity: Option<PenaltySeverity>,
        rescinded: Option<bool>,
        involved: Option<Vec<Involved>>,
        cue: Option<String>,
    },
    Pass {
        timestamp: Option<Timestamp>,
        completed: Option<bool>,
        number: u8,
        points: Option<u8>,
        skater: Option<String>,
        ghost_points: Option<Vec<GhostPoint>>,
    },
    StarPass {
        timestamp: Option<Timestamp>,
        skater: Option<String>,
        team: Option<String>,
        completed: Option<bool>,
        failure: Option<String>,
    },
    Lead {
        timestamp: Option<Timestamp>,
        skater: String,
    },
    LostLead {
        timestamp: Option<Timestamp>,
        skater: String,
    },
    Call {
        timestamp: Option<Timestamp>,
        skater: Option<String>,
        team: Option<String>,
        official: Option<String>,
    },
    EnterBox {
        timestamp: Option<Timestamp>,
        skater: String,
        duration: Option<Number>,
        substitute: Option<Substitute>,
        notes: Option<Vec<Note>>,
    },
    ExitBox {
        timestamp: Option<Timestamp>,
        skater: String,
        duration: Option<Number>,
        premature: Option<PrematureExitReason>,
        no_skater: Option<bool>,
    },
    BoxTime {},
    Injury {
        timestamp: Option<Timestamp>,
        skater: String,
    },
    Note {
        note: String,
        author: Option<String>,
        date: Option<String>,
        notes: Note,
    },
    LeaveTrack {
        timestamp: Option<Timestamp>,
        skater: String,
        reason: Option<LeaveTrackReason>,
        opposing_pass: u8,
    },
    ReturnTrack {
        timestamp: Option<Timestamp>,
        skater: String,
        opposing_pass: u8,
    },
}

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.

Variants

Information on one skater that has skated in a given jam. A typical jam will have 10 of these objects in the jam's events.

Fields of Lineup

Fields of PackLap

Fields of Penalty

Fields of Pass

Fields of StarPass

Fields of Lead

Fields of LostLead

Fields of Call

Fields of EnterBox

Fields of ExitBox

This object and its contents are not actually specified in the DerbyJSON spec

Fields of BoxTime

Fields of Injury

Fields of Note

Fields of LeaveTrack

Fields of ReturnTrack