Skip to main content

SlicerPlan

Struct SlicerPlan 

Source
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

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SlicerPlan

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for SlicerPlan

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl JsonSchema for SlicerPlan

Source§

fn schema_name() -> Cow<'static, str>

The name of the generated JSON Schema. Read more
Source§

fn schema_id() -> Cow<'static, str>

Returns a string that uniquely identifies the schema produced by this type. Read more
Source§

fn json_schema(generator: &mut SchemaGenerator) -> Schema

Generates a JSON Schema for this type. Read more
Source§

fn inline_schema() -> bool

Whether JSON Schemas generated for this type should be included directly in parent schemas, rather than being re-used where possible using the $ref keyword. Read more
Source§

impl PartialEq for SlicerPlan

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Sample for SlicerPlan

Source§

fn sample_full() -> Self

A value carrying every field the type declares.
Source§

fn sample_minimal() -> Self

A value carrying every optional field absent.
Source§

fn sample_alternates() -> Vec<Self>

One value per further arm, for a type whose wire form is a union. Read more
Source§

impl Serialize for SlicerPlan

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for SlicerPlan

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.