#[non_exhaustive]pub struct DetectedBarcode {
pub layout: Option<Layout>,
pub barcode: Option<Barcode>,
/* private fields */
}Expand description
A detected barcode.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.layout: Option<Layout>Layout for DetectedBarcode.
barcode: Option<Barcode>Detailed barcode information of the DetectedBarcode.
Implementations§
Source§impl DetectedBarcode
impl DetectedBarcode
pub fn new() -> Self
Sourcepub fn set_layout<T>(self, v: T) -> Self
pub fn set_layout<T>(self, v: T) -> Self
Sets the value of layout.
Sourcepub fn set_or_clear_layout<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_layout<T>(self, v: Option<T>) -> Self
Sets or clears the value of layout.
Sourcepub fn set_barcode<T>(self, v: T) -> Self
pub fn set_barcode<T>(self, v: T) -> Self
Sets the value of barcode.
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 · 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 Default for DetectedBarcode
impl Default for DetectedBarcode
Source§fn default() -> DetectedBarcode
fn default() -> DetectedBarcode
Returns the “default value” for a type. Read more
Source§impl Message for DetectedBarcode
impl Message for DetectedBarcode
Source§impl PartialEq for DetectedBarcode
impl PartialEq for DetectedBarcode
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 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