pub struct FirstLayerAlignmentJudgedPayload {
pub verdict: AlignmentJudgedVerdict,
pub offset_px: Option<f64>,
pub correction_px: Option<[f64; 2]>,
pub match_strength: Option<f64>,
pub reason: String,
pub frame_sha256: String,
pub view_correction: Option<ViewCorrection>,
}Expand description
One judgement of a print’s first-layer alignment, on one frame.
Fields§
§verdict: AlignmentJudgedVerdictWhat it came to.
offset_px: Option<f64>How far the printed first layer was found from its uncorrected projection, in calibration pixels; null when it was not searched for.
correction_px: Option<[f64; 2]>The correction the pass put in force, [dx, dy] pixels; null unless it
passed.
match_strength: Option<f64>The peak smoothed contrast the layer was found at, in grey levels; null when it was not searched for.
reason: Stringclearly_found for a pass, covered or not_clearly_found for an
inconclusive judgement, and the failure’s own sentence for a failure.
frame_sha256: StringThe stored frame it was judged on.
view_correction: Option<ViewCorrection>The correction in force when the frame was judged; null before the print’s first pass.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FirstLayerAlignmentJudgedPayload
impl<'de> Deserialize<'de> for FirstLayerAlignmentJudgedPayload
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 FirstLayerAlignmentJudgedPayload
impl JsonSchema for FirstLayerAlignmentJudgedPayload
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 Sample for FirstLayerAlignmentJudgedPayload
impl Sample for FirstLayerAlignmentJudgedPayload
Source§fn sample_full() -> Self
fn sample_full() -> Self
A value carrying every field the type declares.
Source§fn sample_minimal() -> Self
fn sample_minimal() -> Self
A value carrying every optional field absent.
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
impl StructuralPartialEq for FirstLayerAlignmentJudgedPayload
Auto Trait Implementations§
impl Forget for FirstLayerAlignmentJudgedPayload
impl Freeze for FirstLayerAlignmentJudgedPayload
impl Move for FirstLayerAlignmentJudgedPayload
impl RefUnwindSafe for FirstLayerAlignmentJudgedPayload
impl Send for FirstLayerAlignmentJudgedPayloadwhere
RawVecInner: Send,
impl Sync for FirstLayerAlignmentJudgedPayloadwhere
RawVecInner: Sync,
impl Unpin for FirstLayerAlignmentJudgedPayload
impl UnsafeUnpin for FirstLayerAlignmentJudgedPayloadwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<ReferenceLandmark>: UnsafeUnpin,
impl UnwindSafe for FirstLayerAlignmentJudgedPayloadwhere
RawVecInner: 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
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> ⓘ
Converts
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> ⓘ
Converts
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>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
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
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.