Struct DetectedBarcode (0.5.0)

A detected barcode.

Fields

layout

barcode

Detailed barcode information of the DetectedBarcode.

Implementations

new

 fn new() -> Self

set_layout

 fn set_layout<T>(self, v: T) -> Self
where
    T: std::convert::Into<crate::model::document::page::Layout>,

Sets the value of [layout][crate::model::document::page::DetectedBarcode::layout].

set_or_clear_layout

 fn set_or_clear_layout<T>(self, v: std::option::Option<T>) -> Self
where
    T: std::convert::Into<crate::model::document::page::Layout>,

Sets or clears the value of [layout][crate::model::document::page::DetectedBarcode::layout].

set_barcode

 fn set_barcode<T>(self, v: T) -> Self
where
    T: std::convert::Into<crate::model::Barcode>,

Sets the value of [barcode][crate::model::document::page::DetectedBarcode::barcode].

set_or_clear_barcode

 fn set_or_clear_barcode<T>(self, v: std::option::Option<T>) -> Self
where
    T: std::convert::Into<crate::model::Barcode>,

Sets or clears the value of [barcode][crate::model::document::page::DetectedBarcode::barcode].