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
32
33
34
35
use super::CodePage;
#[derive(Clone, Debug, PartialEq)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
pub struct CodePageInfo {
pub max_char_size: u8,
pub default: String,
pub lead_byte: [u8; 12],
pub unicode_default: String,
pub code_page: CodePage,
pub name: String,
}
impl Default for CodePageInfo {
fn default() -> Self {
Self {
max_char_size: 0,
default: String::new(),
lead_byte: [0; 12],
unicode_default: String::new(),
code_page: CodePage::None,
name: String::new(),
}
}
}