Struct bardecoder::util::qr::QRInfo
source · pub struct QRInfo {
pub version: u32,
pub ec_level: ECLevel,
pub total_data: u32,
pub errors: u32,
}
Expand description
Information about the decoded QR Code
Fields§
§version: u32
Version of the QR Code, 1 being the smallest, 40 the largest
ec_level: ECLevel
Error correction level of the QR Code
total_data: u32
Number of bits of information in the QR Code. This includes both data codewords and error correction codewords.
errors: u32
Number of bits of information that were incorrect. This can be both in data codewords or error correction codewords since the algorithm doesn’t distinguish between the two.
Trait Implementations§
source§impl PartialEq<QRInfo> for QRInfo
impl PartialEq<QRInfo> for QRInfo
impl Eq for QRInfo
impl StructuralEq for QRInfo
impl StructuralPartialEq for QRInfo
Auto Trait Implementations§
impl RefUnwindSafe for QRInfo
impl Send for QRInfo
impl Sync for QRInfo
impl Unpin for QRInfo
impl UnwindSafe for QRInfo
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