pub struct CheckImageRequest<'a> {
pub print_id: Option<PrintId>,
pub frame: &'a Path,
pub frame_sha256: &'a str,
pub own_camera: bool,
pub paused: bool,
pub captured_at: Timestamp,
pub made_for: ImageUse,
pub plan: Option<PlanPosition>,
}Expand description
One request for a check’s image of a stored frame.
Fields§
§print_id: Option<PrintId>The print the image is of; none for a look at the printer.
frame: &'a PathWhere the stored frame is.
frame_sha256: &'a strThe stored frame’s SHA-256, as the image store names it: what a record of a judgement made on it names.
own_camera: boolWhether the frame is the configured camera’s own rather than a detector’s picture: only the camera’s own frames are judged against its calibration.
paused: boolWhether the printer reported the print paused as the check began, its bed moved off the plan’s height.
captured_at: TimestampWhen the frame was captured.
made_for: ImageUseWhat the image is for.
plan: Option<PlanPosition>Where the print stood in its G-code, when its job is its own file and reported a position the index was read for.
Trait Implementations§
Source§impl<'a> Clone for CheckImageRequest<'a>
impl<'a> Clone for CheckImageRequest<'a>
Auto Trait Implementations§
impl<'a> Forget for CheckImageRequest<'a>
impl<'a> Freeze for CheckImageRequest<'a>where
&'a Path: Freeze,
&'a str: Freeze,
NonZero<i32>: Freeze,
Utc: Freeze,
*const ArcInner<GcodeIndex> is !null: Freeze,
PhantomData<ArcInner<GcodeIndex>>: Freeze,
impl<'a> Move for CheckImageRequest<'a>
impl<'a> RefUnwindSafe for CheckImageRequest<'a>
impl<'a> Send for CheckImageRequest<'a>
impl<'a> Sync for CheckImageRequest<'a>
impl<'a> Unpin for CheckImageRequest<'a>
impl<'a> UnsafeUnpin for CheckImageRequest<'a>where
&'a Path: UnsafeUnpin,
&'a str: UnsafeUnpin,
NonZeroI32Inner: UnsafeUnpin,
Utc: UnsafeUnpin,
*const ArcInner<GcodeIndex> is !null: UnsafeUnpin,
PhantomData<ArcInner<GcodeIndex>>: UnsafeUnpin,
impl<'a> UnwindSafe for CheckImageRequest<'a>where
&'a Path: UnwindSafe,
&'a str: UnwindSafe,
NonZero<i32>: UnwindSafe,
Utc: UnwindSafe,
Arc<GcodeIndex>: UnwindSafe,
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