mist-core 2.0.1

core functionality of mist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use serde::{Deserialize, Serialize};

#[derive(Serialize, Deserialize, Debug, PartialEq, Eq, Clone)]
/// Different types of information panels.
///
/// `golds` field represents whether to compare against gold times rather than pb times.
pub enum Panel {
    /// Comparison to sum of runner's golds
    SumOfBest,
    /// Comparison to the current split, either gold or pb
    CurrentSplitDiff { golds: bool },
    /// Prediction of final run time, based on either pb times or golds.
    Pace { golds: bool },
    /// Custom panel with two text fields.
    Custom { title: String, value: String },
}