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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#![allow(dead_code)]
#![allow(non_snake_case)]
#![allow(non_camel_case_types)]
#![allow(unused_imports)]
use serde::{Serialize, Deserialize};
use serde_repr::{Deserialize_repr, Serialize_repr};use super::*;
use super::common::*;
#[derive(Serialize_repr, Deserialize_repr, Debug, Hash, PartialEq, Eq)]
#[repr(u8)]
pub enum ExitCode {
Ok_0,
Notok_2,
Restart_4,
}
#[derive(Serialize_repr, Deserialize_repr, Debug, Hash, PartialEq, Eq)]
#[repr(u8)]
pub enum DbType {
Main_0,
Chat_1,
Fs_block_cache_2,
Fs_block_cache_meta_3,
Fs_sync_block_cache_4,
Fs_sync_block_cache_meta_5,
}
pub struct DbKey {
pub dbType: DbType,
pub objType: i32,
pub key: Option<String>,
}
pub type DbValue = String;