pub struct SlicerPlan {Show 16 fields
pub expected_color: Option<String>,
pub next_change: Option<PlannedChange>,
pub minutes_to_next_change: Option<i64>,
pub change_waiting: Option<PlannedChange>,
pub layer: Option<usize>,
pub z_mm: Option<f64>,
pub final_z_mm: Option<f64>,
pub types: Vec<String>,
pub minutes_left: Option<i64>,
pub flow_factor: Option<SetValue>,
pub fan_percent: Option<SetValue>,
pub object_count: Option<usize>,
pub objects: Vec<BedArea>,
pub rise: Option<Rise>,
pub at_odds: Vec<PlanMismatch>,
pub unknown: Vec<PlanFact>,
}Expand description
What the slicer planned at the print’s current file position: the shape and place of what should be printing, read from the print’s own G-code.
These are the slicer’s plan rather than an observation: a feature named here is part of the design at this height, and nothing here says how well it printed.
Fields§
§expected_color: Option<String>The colour the print should be laying at the current position, as
#RRGGBB; absent when the file plans no change or names no colour
there.
next_change: Option<PlannedChange>The next change the file plans after the current position; absent when it plans none there.
minutes_to_next_change: Option<i64>The slicer’s own count of the minutes to that change, from the latest
M73 C the position has reached; absent when there is no next change
or no count.
change_waiting: Option<PlannedChange>The planned change the printer is waiting at now, for a person to finish; absent when it is waiting at none.
layer: Option<usize>The layer the print is in, counting the first as 1; absent before the first.
z_mm: Option<f64>The current layer’s height, in millimetres.
final_z_mm: Option<f64>The final layer’s height, in millimetres.
types: Vec<String>What the current layer lays material as, in the order the file first
names each: Perimeter, Support material, Bridge infill.
minutes_left: Option<i64>The slicer’s own estimate of the minutes left, at the current position.
flow_factor: Option<SetValue>The flow factor, one meaning one hundred percent.
fan_percent: Option<SetValue>The part-cooling fan speed, in percent.
object_count: Option<usize>How many objects the file lays down; absent when it labels none.
objects: Vec<BedArea>The bed area each object the file lays down covers, unnamed, as
[x_min, y_min, x_max, y_max] in whole millimetres, in the order of
the file’s object numbers.
rise: Option<Rise>How far the plan has risen since an earlier frame; absent before any frame is half an hour old.
at_odds: Vec<PlanMismatch>Each setting in force the plan at this height says is wrong.
unknown: Vec<PlanFact>The facts the file does not state, which are therefore unknown rather than absent.
Trait Implementations§
Source§impl Clone for SlicerPlan
impl Clone for SlicerPlan
Source§impl Debug for SlicerPlan
impl Debug for SlicerPlan
Source§impl<'de> Deserialize<'de> for SlicerPlan
impl<'de> Deserialize<'de> for SlicerPlan
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 SlicerPlan
impl JsonSchema for SlicerPlan
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