tauri-plugin-thermal-printer 1.3.2

Plugin for Tauri to send esc/pos commands to thermal_printer
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/// Posición del texto HRI (Human Readable Interpretation)
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum BarcodeTextPosition {
    NotPrinted = 0,  // No imprimir texto
    Above = 1,       // Encima del código
    Below = 2,       // Debajo del código
    Both = 3,        // Ambos lados
}

impl BarcodeTextPosition {
    /// Obtiene el valor numérico de la posición del texto
    pub fn value(&self) -> u8 {
        *self as u8
    }
}