eric_sdk/
lib.rs

1mod certificate;
2mod config;
3mod eric;
4mod error_code;
5mod response;
6mod utils;
7
8pub use eric::Eric;
9pub use error_code::ErrorCode;
10pub use response::EricResponse;
11
12#[derive(Debug, Clone, Copy)]
13pub(crate) enum ProcessingFlag {
14    Validate = 1 << 1,
15    Send = 1 << 2,
16    Print = 1 << 5,
17    SendAndPrint = 1 << 2 | 1 << 5,
18    #[allow(dead_code)]
19    CheckHints = 1 << 7,
20    #[allow(dead_code)]
21    ValidateWithoutDate = 1 << 8,
22}
23
24impl ProcessingFlag {
25    pub fn into_u32(self) -> u32 {
26        self as u32
27    }
28}
29
30pub(crate) enum Preview {
31    Yes = 1,
32    No = 0,
33}