pub struct StartRequest {
pub file: String,
pub plate: u32,
pub use_ams: bool,
pub ams_map: Vec<i32>,
pub bed_type: String,
pub timelapse: bool,
pub inspection: Option<PlateInspection>,
}Expand description
A resolved print-start request.
Fields§
§file: String§plate: u32§use_ams: bool§ams_map: Vec<i32>§bed_type: String§timelapse: boolEnable the printer-side timelapse flag. Beyond recording the built-in camera, this arms the sliced timelapse gcode — on Smooth mode that’s the per-layer park with a spiral Z-hop + prime-tower wipe, which is skipped entirely when the flag is off (and the head then scrapes the print).
inspection: Option<PlateInspection>Plate inspection (when we have the file’s bytes, e.g. an upload-then-start):
its plate-gcode md5 is stamped into the project_file so the printer
verifies the file. None for “file already on the printer” starts.
Implementations§
Source§impl StartRequest
impl StartRequest
Sourcepub fn to_command(&self) -> ProtoCommand
pub fn to_command(&self) -> ProtoCommand
Build the MQTT command via the shared core::start
builder: project_file for a .3mf, gcode_file for raw .gcode, with
the plate-gcode md5 folded in when an inspection is present.
Auto Trait Implementations§
impl Freeze for StartRequest
impl RefUnwindSafe for StartRequest
impl Send for StartRequest
impl Sync for StartRequest
impl Unpin for StartRequest
impl UnsafeUnpin for StartRequest
impl UnwindSafe for StartRequest
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