pub struct CameraCheck {Show 16 fields
pub id: CameraCheckId,
pub checked_at: Timestamp,
pub sheet: SheetId,
pub verdict: CameraCheckVerdict,
pub unavailable_reason: Option<UnavailableReason>,
pub unjudgeable_cause: Option<UnjudgeableCause>,
pub offset_px: Option<f64>,
pub residual_px: Option<f64>,
pub offset_limit_px: f64,
pub residual_limit_px: f64,
pub landmarks_moved: Option<u32>,
pub correction: Option<ViewCorrection>,
pub bed_z_mm: f64,
pub frame: Option<ImageRef>,
pub image_path: Option<PathBuf>,
pub message: String,
}Expand description
One check of the camera’s alignment with its calibration, on the empty
sheet: the answer to check_camera and the record a start names.
An answer, so it admits fields beside its own the way every answer of the
server does: a client that could not open image_path says so in a field
of its own beside the rest.
Fields§
§id: CameraCheckIdThe check.
checked_at: TimestampWhen it was made.
sheet: SheetIdThe sheet it was made on.
verdict: CameraCheckVerdictWhat it found.
Why it could not say; null unless the verdict is unavailable.
unjudgeable_cause: Option<UnjudgeableCause>What the fit could not judge; null unless the reason is unjudgeable,
so never set on a frame whose landmarks show the camera moved.
offset_px: Option<f64>The fitted translation’s length, in pixels; null when the sheet could not be fitted.
residual_px: Option<f64>The RMS distance of the sheet’s found edges from the translated outline, in pixels; null when the sheet could not be fitted.
offset_limit_px: f64The translation aligned is held to, in pixels.
residual_limit_px: f64The residual above which the frame is unjudgeable, in pixels.
landmarks_moved: Option<u32>How many visible landmarks lie beyond the calibration’s drift tolerance; null when there was no frame of the calibration’s to search.
correction: Option<ViewCorrection>The correction a print started under this check is drawn through,
its reference the landmarks found on this frame; present only when
aligned.
bed_z_mm: f64The bed’s height the check was judged at, as given, in millimetres.
frame: Option<ImageRef>The stored frame; null when there is none.
image_path: Option<PathBuf>The absolute path, on the server’s host, of the frame with the fitted sheet outline and the landmarks drawn; null when there is no frame.
message: StringWhat was found and what to do next, in one sentence.
Trait Implementations§
Source§impl Clone for CameraCheck
impl Clone for CameraCheck
Source§impl Debug for CameraCheck
impl Debug for CameraCheck
Source§impl<'de> Deserialize<'de> for CameraCheck
impl<'de> Deserialize<'de> for CameraCheck
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 CameraCheck
impl JsonSchema for CameraCheck
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 moreSource§impl PartialEq for CameraCheck
impl PartialEq for CameraCheck
Source§impl Sample for CameraCheck
impl Sample for CameraCheck
Source§fn sample_full() -> Self
fn sample_full() -> Self
Source§fn sample_minimal() -> Self
fn sample_minimal() -> Self
Source§fn sample_alternates() -> Vec<Self>
fn sample_alternates() -> Vec<Self>
Source§impl Serialize for CameraCheck
impl Serialize for CameraCheck
impl StructuralPartialEq for CameraCheck
Auto Trait Implementations§
impl Forget for CameraCheck
impl Freeze for CameraCheckwhere
NonZero<i32>: Freeze,
Utc: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<ReferenceLandmark>: Freeze,
impl Move for CameraCheck
impl RefUnwindSafe for CameraCheck
impl Send for CameraCheck
impl Sync for CameraCheck
impl Unpin for CameraCheck
impl UnsafeUnpin for CameraCheckwhere
NonZeroI32Inner: UnsafeUnpin,
Utc: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<ReferenceLandmark>: UnsafeUnpin,
impl UnwindSafe for CameraCheck
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.