#[non_exhaustive]pub struct ScanReport {
pub detections: Vec<Detection>,
pub score: Option<Score>,
pub hints: Vec<Hint>,
pub alpha: Option<AlphaReport>,
pub trace: PipelineTrace,
pub versions: Versions,
}Expand description
The scan result — the versioned cross-boundary contract.
Empty detections means “no QR found”, which is a valid outcome,
never an error.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.detections: Vec<Detection>Decoded symbols (empty = nothing found — final only when
trace.budget_exhausted is Some(false); multi-QR future-proof).
score: Option<Score>Scannability score of the PRIMARY detection (detections[0] — for
single-QR inputs, THE symbol). None exactly when no judgment was
published: no detection; a configuration that computes no score
(crate::ScanConfig::computes_score: the Frame profile, every
axis skipped); a judgment the budget interrupted
(trace.budget_exhausted is then Some(true)); a contained internal
fault in the score computation. Never partial, never a zero.
Per-detection scoring for multi-QR scenes is a future additive
extension.
hints: Vec<Hint>Machine-actionable improvement hints.
alpha: Option<AlphaReport>Alpha-transparency handling — absent (not null) for opaque
inputs and under alpha_background: none, so pre-0.9 consumers
and opaque reports keep their exact bytes.
trace: PipelineTracePipeline execution trace.
versions: VersionsContract version markers.
Implementations§
Source§impl ScanReport
impl ScanReport
Trait Implementations§
Source§impl Clone for ScanReport
impl Clone for ScanReport
Source§impl Debug for ScanReport
impl Debug for ScanReport
Source§impl<'de> Deserialize<'de> for ScanReport
impl<'de> Deserialize<'de> for ScanReport
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 PartialEq for ScanReport
impl PartialEq for ScanReport
Source§impl Serialize for ScanReport
impl Serialize for ScanReport
impl StructuralPartialEq for ScanReport
Auto Trait Implementations§
impl Forget for ScanReport
impl Freeze for ScanReportwhere
*const u8 is !null: Freeze,
PhantomData<Detection>: Freeze,
PhantomData<AxisScore>: Freeze,
PhantomData<Hint>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<AlphaProbe>: Freeze,
PhantomData<[u8; 2]>: Freeze,
PhantomData<AlphaPaletteProbe>: Freeze,
PhantomData<StageTrace>: Freeze,
PhantomData<Symbology>: Freeze,
impl Move for ScanReport
impl RefUnwindSafe for ScanReport
impl Send for ScanReportwhere
RawVecInner: Send,
impl Sync for ScanReportwhere
RawVecInner: Sync,
impl Unpin for ScanReport
impl UnsafeUnpin for ScanReportwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Detection>: UnsafeUnpin,
PhantomData<AxisScore>: UnsafeUnpin,
PhantomData<Hint>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<AlphaProbe>: UnsafeUnpin,
PhantomData<[u8; 2]>: UnsafeUnpin,
PhantomData<AlphaPaletteProbe>: UnsafeUnpin,
PhantomData<StageTrace>: UnsafeUnpin,
PhantomData<Symbology>: UnsafeUnpin,
impl UnwindSafe for ScanReportwhere
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
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>,
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 more