1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
mod certificate;
mod config;
mod eric;
mod error_code;
mod response;
mod utils;

pub use eric::Eric;
pub use error_code::ErrorCode;
pub use response::EricResponse;

#[derive(Debug, Clone, Copy)]
pub(crate) enum ProcessingFlag {
    Validate = 2,
    Send = 4,
    Print = 32,
    SendAndPrint = 36,
    #[allow(dead_code)]
    CheckHints = 128,
}

impl ProcessingFlag {
    pub fn into_u32(self) -> u32 {
        self as u32
    }
}

pub(crate) enum Preview {
    Yes = 1,
    No = 0,
}