pub struct TurnSituation {
pub printer_state: Option<PrinterState>,
pub detector_warned: Option<bool>,
pub detector_paused_the_print: Option<bool>,
pub arrived_while_busy: Vec<EventRecord>,
}Expand description
What the supervisor knew about the moment one turn began, beside its event.
Facts rather than instructions: whether the print is paused, and whether
the detector paused it itself, are exactly what decides whether an agent’s
adjustment would be applied to a moving print or held until it moves again.
Every field is written out, a fact nobody knows as null, so that the
prompt it fills has one shape whatever was known.
Fields§
§printer_state: Option<PrinterState>The printer’s state when the turn began, in the printer contract’s own
vocabulary — a state it does not name as {"unknown": "<the printer's word>"} — null when the printer could not be read.
detector_warned: Option<bool>Whether the detector only warned, null when the event is not one of its detections.
detector_paused_the_print: Option<bool>Whether the detector paused the print itself, null when the event is not one of its detections.
arrived_while_busy: Vec<EventRecord>Events for this print that arrived while its previous turn was running and that turn never took, oldest first. The turn’s own event is the newest of them, and is not repeated here.
Trait Implementations§
Source§impl Clone for TurnSituation
impl Clone for TurnSituation
Source§impl Debug for TurnSituation
impl Debug for TurnSituation
Source§impl Default for TurnSituation
impl Default for TurnSituation
Source§impl<'de> Deserialize<'de> for TurnSituation
impl<'de> Deserialize<'de> for TurnSituation
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>,
Source§impl JsonSchema for TurnSituation
impl JsonSchema for TurnSituation
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