Allows define a trait using base values for documents send to and from fiscal printer.
SH
rustup target add armv7-unknown-linux-gnueabihf
https://medium.com/swlh/compiling-rust-for-raspberry-pi-arm-922b55dbb050
Examples:
rust
main.js
rust
let mut _handler = serialport::new("/dev/ttyUSB0", 9600)
.timeout(Duration::from_millis(10))
.open().expect("Failed to open port");
let mut _pnp_driver = Printer { printer : PNP::new()};
// Get result from report
let _x_result = _pnp_driver.printer.report(&mut _handler, Report::new(ReportType::XReport));