pub struct MatchSimple {
pub key: String,
pub comp_level: CompLevel,
pub set_number: i32,
pub match_number: i32,
pub alliances: Option<Box<MatchSimpleAlliances>>,
pub winning_alliance: Option<WinningAlliance>,
pub event_key: String,
pub time: Option<i64>,
pub predicted_time: Option<i64>,
pub actual_time: Option<i64>,
}Fields§
§key: StringTBA match key with the format yyyy[EVENT_CODE]_[COMP_LEVEL]m[MATCH_NUMBER], where yyyy is the year, and EVENT_CODE is the event code of the event, COMP_LEVEL is (qm, ef, qf, sf, f), and MATCH_NUMBER is the match number in the competition level. A set number may append the competition level if more than one match in required per set.
comp_level: CompLevelThe competition level the match was played at.
set_number: i32The set number in a series of matches where more than one match is required in the match series.
match_number: i32The match number of the match in the competition level.
alliances: Option<Box<MatchSimpleAlliances>>§winning_alliance: Option<WinningAlliance>The color (red/blue) of the winning alliance. Will contain an empty string in the event of no winner, or a tie.
event_key: StringEvent key of the event the match was played at.
time: Option<i64>UNIX timestamp (seconds since 1-Jan-1970 00:00:00) of the scheduled match time, as taken from the published schedule.
predicted_time: Option<i64>UNIX timestamp (seconds since 1-Jan-1970 00:00:00) of the TBA predicted match start time.
actual_time: Option<i64>UNIX timestamp (seconds since 1-Jan-1970 00:00:00) of actual match start time.
Implementations§
Trait Implementations§
Source§impl Clone for MatchSimple
impl Clone for MatchSimple
Source§fn clone(&self) -> MatchSimple
fn clone(&self) -> MatchSimple
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more