#[non_exhaustive]pub struct RunOutput {Show 13 fields
pub frames: u32,
pub top_screen: String,
pub screens: Vec<String>,
pub quit: Option<u32>,
pub scene: Option<Scene>,
pub frame: String,
pub events: Vec<Event>,
pub sounds: Vec<Sound>,
pub sounds_added: Vec<AddedSound>,
pub log: Vec<LogEntry>,
pub modules: Vec<ModuleEntry>,
pub perf: Option<PerfSummary>,
pub session: Option<SessionPlayed>,
}Expand description
What run saw.
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.frames: u32The frames run in all.
top_screen: StringThe top screen’s name; empty once every screen has closed.
screens: Vec<String>The open screens, bottom first.
quit: Option<u32>The frame the game asked to quit in, if it did.
scene: Option<Scene>The scene on screen, if a stage is open.
frame: StringThe last frame drawn, in the snapshot text format.
events: Vec<Event>What happened, in frame order, then the game’s own events.
sounds: Vec<Sound>The sound cues asked for, in order.
sounds_added: Vec<AddedSound>The sounds the game added at run time and hadn’t removed at the end of the run, in cue order; left out when none.
log: Vec<LogEntry>The game’s log, oldest first: its last lines.
modules: Vec<ModuleEntry>The modules installed in the game, in install order, with the hooks the game calls on each.
perf: Option<PerfSummary>The frames’ times, with perf: none without it, or when nothing
was measured.
session: Option<SessionPlayed>How far the session record played, with session.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RunOutput
impl<'de> Deserialize<'de> for RunOutput
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 RunOutput
impl JsonSchema for RunOutput
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 moreimpl StructuralPartialEq for RunOutput
Auto Trait Implementations§
impl Freeze for RunOutput
impl RefUnwindSafe for RunOutput
impl Send for RunOutput
impl Sync for RunOutput
impl Unpin for RunOutput
impl UnsafeUnpin for RunOutput
impl UnwindSafe for RunOutput
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