Skip to main content

thaiidcard/
options.rs

1//! Options for configuring card reads.
2
3/// Controls which data sections are read from the Thai National ID card.
4/// When `reader_name` is `None`, the first available reader with a card is used.
5/// Face images are returned as a base64-encoded JPEG string.
6#[derive(Debug, Clone)]
7pub struct Options {
8    pub reader_name: Option<String>,
9    pub show_face_image: bool,
10    pub show_nhso_data: bool,
11    pub show_laser_data: bool,
12}
13
14impl Default for Options {
15    fn default() -> Self {
16        Self {
17            reader_name: None,
18            show_face_image: true,
19            show_nhso_data: false,
20            show_laser_data: false,
21        }
22    }
23}