#[non_exhaustive]pub struct StartInput {
pub project: Option<String>,
pub start: Vec<GameArg>,
pub link: Option<StartLink>,
pub session: Option<SessionInput>,
}Expand description
What start starts.
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.project: Option<String>The game’s folder (the one holding its shuyi.ron, or one below
it), from the session’s folder; the session folder’s own project
if none. Not needed with link.
start: Vec<GameArg>The game’s own start options (start’s answer lists them), in the
order given. None with link: the build runs with its own.
link: Option<StartLink>A debug build already running in its window, to attach the session to over the live link instead of starting the game headless.
session: Option<SessionInput>A session record to start from, as run’s: played to its end, or
the first frame this build plays differently (ok false, the game
kept on that frame), and step, scene and frame_png go on from
there; reset plays it again. No start options with it.
Trait Implementations§
Source§impl Clone for StartInput
impl Clone for StartInput
Source§fn clone(&self) -> StartInput
fn clone(&self) -> StartInput
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 StartInput
impl Debug for StartInput
Source§impl Default for StartInput
impl Default for StartInput
Source§fn default() -> StartInput
fn default() -> StartInput
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StartInputwhere
StartInput: Default,
impl<'de> Deserialize<'de> for StartInputwhere
StartInput: 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 StartInput
Source§impl JsonSchema for StartInput
impl JsonSchema for StartInput
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 StartInput
impl PartialEq for StartInput
Source§impl Serialize for StartInput
impl Serialize for StartInput
impl StructuralPartialEq for StartInput
Auto Trait Implementations§
impl Freeze for StartInput
impl RefUnwindSafe for StartInput
impl Send for StartInput
impl Sync for StartInput
impl Unpin for StartInput
impl UnsafeUnpin for StartInput
impl UnwindSafe for StartInput
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.