pub struct Look {
pub event: EventRecord,
pub arrived: Vec<EventRecord>,
pub frame: Option<ImageRef>,
pub image_path: Option<PathBuf>,
pub image_note: Option<String>,
pub printer: Option<PrinterSnapshot>,
pub job: Option<JobSnapshot>,
pub detector_paused: bool,
}Expand description
One fresh look at a print.
An answer rather than a record, so it admits fields beside its own the way every answer of the server does: a client that could not open the frame’s path says so in a field of its own beside the rest of the answer.
Fields§
§event: EventRecordThe look itself, as it was written into the print’s history — or the printer’s, for a look at the printer — carrying the frame as its image when there is one.
arrived: Vec<EventRecord>The events for this print that arrived while the look waited, oldest first; the look returned early when there were any.
frame: Option<ImageRef>The frame the camera gave, absent when no camera is configured or it gave none — which the history records as a port failure.
image_path: Option<PathBuf>The absolute path the frame’s bytes are at, on the supervisor’s host.
image_note: Option<String>What the image at image_path is, and why it is that one, in one line;
absent with no image, or when what made it says nothing.
printer: Option<PrinterSnapshot>The printer’s state now, absent when it could not be read.
job: Option<JobSnapshot>The job the printer reports now, absent when it could not be read.
detector_paused: boolWhether the print is paused and the pause is the detector’s, which is what an adjustment asked for now would be applied under.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Look
impl<'de> Deserialize<'de> for Look
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 Look
impl JsonSchema for Look
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