pub struct AutobalanceOutput {
pub stage: Option<String>,
pub title: String,
pub settings: BalanceSettings,
pub in_bands: bool,
pub stop: Stop,
pub evaluations: u32,
pub changes: Vec<Change>,
pub before: PlaytestReport,
pub after: PlaytestReport,
pub written: Option<Vec<String>>,
pub seconds: f64,
}Expand description
What autobalance found.
Fields§
§stage: Option<String>The stage, if the game names its stages.
title: StringThe plan’s title.
settings: BalanceSettingsThe search’s numbers, the defaults filled in.
in_bands: boolWhether every rate of the stage found is in its band.
stop: StopWhy the search stopped.
evaluations: u32The evaluations it made.
changes: Vec<Change>Every knob it moved, in the knobs’ order, with the knob’s words.
before: PlaytestReportThe stage as authored, at the full tries.
after: PlaytestReportThe stage found, at the full tries (the stage as authored when nothing changed).
written: Option<Vec<String>>With apply: the files the game wrote, none when nothing changed.
seconds: f64The search’s wall time, in seconds: the one number that changes with the machine and the thread count.
Trait Implementations§
Source§impl Clone for AutobalanceOutput
impl Clone for AutobalanceOutput
Source§fn clone(&self) -> AutobalanceOutput
fn clone(&self) -> AutobalanceOutput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AutobalanceOutput
impl Debug for AutobalanceOutput
Source§impl<'de> Deserialize<'de> for AutobalanceOutput
impl<'de> Deserialize<'de> for AutobalanceOutput
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for AutobalanceOutput
impl JsonSchema for AutobalanceOutput
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for AutobalanceOutput
impl PartialEq for AutobalanceOutput
Source§impl Serialize for AutobalanceOutput
impl Serialize for AutobalanceOutput
impl StructuralPartialEq for AutobalanceOutput
Auto Trait Implementations§
impl Freeze for AutobalanceOutput
impl RefUnwindSafe for AutobalanceOutput
impl Send for AutobalanceOutput
impl Sync for AutobalanceOutput
impl Unpin for AutobalanceOutput
impl UnsafeUnpin for AutobalanceOutput
impl UnwindSafe for AutobalanceOutput
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more