pub struct PlannedChange {
pub index: u32,
pub kind: PlannedChangeKind,
pub offset_bytes: u64,
pub layer: u32,
pub z_mm: f64,
pub color: Option<String>,
}Expand description
One stop the print’s own G-code plans: an M600 colour change or an
M601 pause, where the firmware waits for a person.
Fields§
§index: u32Its place among the file’s changes, counting from 0 in file order.
kind: PlannedChangeKindWhat it stops the print for.
offset_bytes: u64The byte offset of the first byte of its M600 or M601 line.
layer: u32The first layer printed after it, counting the first as 1: the layer
whose ;Z: is the change’s height.
z_mm: f64That layer’s height, in millimetres.
color: Option<String>The colour loaded at it, as #RRGGBB in upper case, from the
;COLOR_CHANGE,T<n>,#RRGGBB line just before its M600; null for an
M601, and for an M600 with no such line.
Trait Implementations§
Source§impl Clone for PlannedChange
impl Clone for PlannedChange
Source§impl Debug for PlannedChange
impl Debug for PlannedChange
Source§impl<'de> Deserialize<'de> for PlannedChange
impl<'de> Deserialize<'de> for PlannedChange
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for PlannedChange
impl JsonSchema for PlannedChange
Source§fn schema_id() -> Cow<'static, str>
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
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
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 moreSource§impl PartialEq for PlannedChange
impl PartialEq for PlannedChange
Source§impl Sample for PlannedChange
impl Sample for PlannedChange
Source§fn sample_full() -> Self
fn sample_full() -> Self
A value carrying every field the type declares.
Source§fn sample_alternates() -> Vec<Self>
fn sample_alternates() -> Vec<Self>
One value per further arm, for a type whose wire form is a union. Read more
Source§fn sample_minimal() -> Self
fn sample_minimal() -> Self
A value carrying every optional field absent.
Source§impl Serialize for PlannedChange
impl Serialize for PlannedChange
impl StructuralPartialEq for PlannedChange
Auto Trait Implementations§
impl Forget for PlannedChange
impl Freeze for PlannedChange
impl Move for PlannedChange
impl RefUnwindSafe for PlannedChange
impl Send for PlannedChange
impl Sync for PlannedChange
impl Unpin for PlannedChange
impl UnsafeUnpin for PlannedChange
impl UnwindSafe for PlannedChange
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more