Skip to main content

eric_sdk/
lib.rs

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