pub struct SlicerPlan {
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§
§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