#[non_exhaustive]pub struct PlaytestInput {
pub stage: Option<String>,
pub every_stage: bool,
pub entrants: Vec<String>,
pub tries: Option<u32>,
pub seed: Option<u64>,
pub turns: Option<u32>,
pub threads: Option<u32>,
pub start: Vec<GameArg>,
pub history: Option<String>,
pub no_history: bool,
}Expand description
What playtest plays. A number left out is the game’s default
(GameTools::playtest_defaults).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.stage: Option<String>The stage, one of the game’s; needed when it has several, unless
every_stage.
every_stage: boolEvery stage of the game, in its order, a report each.
entrants: Vec<String>The entrants that play, by name or by a group’s name; the game’s default ones if empty.
tries: Option<u32>How many tries of each entrant.
seed: Option<u64>The first try’s seed; each next try takes the next.
turns: Option<u32>The turn a try stops at if it hasn’t ended.
threads: Option<u32>The threads to play on; one a core if left out. The report never depends on it.
start: Vec<GameArg>The game’s own options, in the order given.
history: Option<String>The folder the history is kept in, from the project’s
(DEFAULT_HISTORY if left out); only kept keeps one.
no_history: boolKeep no history, and compare with none.
Implementations§
Trait Implementations§
Source§impl Clone for PlaytestInput
impl Clone for PlaytestInput
Source§fn clone(&self) -> PlaytestInput
fn clone(&self) -> PlaytestInput
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 PlaytestInput
impl Debug for PlaytestInput
Source§impl Default for PlaytestInput
impl Default for PlaytestInput
Source§fn default() -> PlaytestInput
fn default() -> PlaytestInput
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PlaytestInputwhere
PlaytestInput: Default,
impl<'de> Deserialize<'de> for PlaytestInputwhere
PlaytestInput: Default,
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
impl Eq for PlaytestInput
Source§impl JsonSchema for PlaytestInput
impl JsonSchema for PlaytestInput
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 PlaytestInput
impl PartialEq for PlaytestInput
Source§impl Serialize for PlaytestInput
impl Serialize for PlaytestInput
impl StructuralPartialEq for PlaytestInput
Auto Trait Implementations§
impl Freeze for PlaytestInput
impl RefUnwindSafe for PlaytestInput
impl Send for PlaytestInput
impl Sync for PlaytestInput
impl Unpin for PlaytestInput
impl UnsafeUnpin for PlaytestInput
impl UnwindSafe for PlaytestInput
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.