code-scanner-driver 0.1.1

Driver for barcode scanners and keyboard input with GTIN validation, async streaming, and burst detection.
Documentation
1
2
3
4
5
6
7
8
9
10
use serde::Serialize;
use crate::event::source::Source;

#[derive(Debug, Serialize)]
pub struct ScannerEvent {
    pub source: Source,
    pub text: Option<String>,
    pub raw: Vec<u8>,
    pub timestamp: u128,
}