pub struct DetectedBarcode {
pub payload: String,
pub symbology: String,
pub confidence: f32,
pub bounding_box: BoundingBox,
}Available on crate feature
detect_barcodes only.Expand description
One detected barcode.
Fields§
§payload: StringThe decoded payload (URL, text, contact data, …). May be empty if Vision couldn’t decode it.
symbology: StringApple’s symbology identifier (e.g. "VNBarcodeSymbologyQR",
"VNBarcodeSymbologyEAN13", "VNBarcodeSymbologyAztec").
confidence: f32Confidence in 0.0..=1.0.
bounding_box: BoundingBoxNormalised bounding box (origin at bottom-left, Vision convention).
Trait Implementations§
Source§impl Clone for DetectedBarcode
impl Clone for DetectedBarcode
Source§fn clone(&self) -> DetectedBarcode
fn clone(&self) -> DetectedBarcode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DetectedBarcode
impl Debug for DetectedBarcode
Source§impl PartialEq for DetectedBarcode
impl PartialEq for DetectedBarcode
Source§fn eq(&self, other: &DetectedBarcode) -> bool
fn eq(&self, other: &DetectedBarcode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DetectedBarcode
Auto Trait Implementations§
impl Freeze for DetectedBarcode
impl RefUnwindSafe for DetectedBarcode
impl Send for DetectedBarcode
impl Sync for DetectedBarcode
impl Unpin for DetectedBarcode
impl UnsafeUnpin for DetectedBarcode
impl UnwindSafe for DetectedBarcode
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