pub struct JobSnapshot {
pub completion: Option<Reported>,
pub error: Option<JobError>,
pub estimated_print_time_s: Option<i64>,
pub filament: Option<Vec<ToolFilament>>,
pub file_name: Option<String>,
pub file_origin: Option<String>,
pub file_position_bytes: Option<i64>,
pub print_time_left_s: Option<i64>,
pub print_time_s: Option<i64>,
pub size_bytes: Option<i64>,
pub state: PrinterState,
}Expand description
The job a printer reports it is running.
Every field but state is optional: an absent one means the source did
not
report it.
Fields§
§completion: Option<Reported>How far through the print is, as a fraction from zero to one.
Normalized to a fraction here regardless of how the source expresses it.
error: Option<JobError>The error the source reports, when it reports one, and whose it is.
estimated_print_time_s: Option<i64>The whole print’s estimated duration, in whole seconds.
filament: Option<Vec<ToolFilament>>The filament the source’s analysis of the file says each tool uses; empty when the source reported none.
file_name: Option<String>The name of the file being printed, as the source reported it.
file_origin: Option<String>Where the file lives, in the source’s own vocabulary.
file_position_bytes: Option<i64>How far into the file the printer has read, in bytes, when the source reported it.
print_time_left_s: Option<i64>How long the print has left, in whole seconds.
print_time_s: Option<i64>How long the print has been running, in whole seconds.
size_bytes: Option<i64>The file’s size in bytes.
state: PrinterStateThe state the source reports the job to be in.