pub struct Targets<T: Ord> {
pub success: BTreeMap<String, Vec<Condition>>,
pub bands: BTreeMap<T, BTreeMap<String, Band>>,
pub floors: BTreeMap<String, u32>,
pub medians: Vec<MedianTarget>,
}Expand description
What each entrant should achieve, over the game’s own tier type T
(whatever its stages are labelled with). Targets::checks gives a
stage’s checks from it.
Fields§
§success: BTreeMap<String, Vec<Condition>>What makes a try a success, per entrant.
bands: BTreeMap<T, BTreeMap<String, Band>>The share of successes wanted, per tier and entrant.
floors: BTreeMap<String, u32>The share under which a run is blocked, in percent, per entrant that has one.
medians: Vec<MedianTarget>Medians compared between two entrants, on a stage of any tier.
Implementations§
Source§impl<T: Ord> Targets<T>
impl<T: Ord> Targets<T>
Sourcepub fn checks(&self, tier: &T, entrants: &[&str]) -> Vec<Check>
pub fn checks(&self, tier: &T, entrants: &[&str]) -> Vec<Check>
The checks of a stage of tier that entrants play: a
Check::Rate per entrant, in the order given, that has both a
success rule and a band for tier, then each median, in file
order, whose two entrants both play. Every check names only
entrants of entrants.
Sourcepub fn unknown_entrants(&self, known: &[&str]) -> Vec<String>
pub fn unknown_entrants(&self, known: &[&str]) -> Vec<String>
The names the targets use that aren’t in known, sorted, each
once: a misspelt entrant would otherwise just get no check.
Trait Implementations§
Source§impl<'de, T> Deserialize<'de> for Targets<T>where
T: Ord + Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Targets<T>where
T: Ord + Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl<T: Eq + Ord> Eq for Targets<T>
Source§impl<T> JsonSchema for Targets<T>where
T: JsonSchema + Ord,
impl<T> JsonSchema for Targets<T>where
T: JsonSchema + Ord,
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more