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
// Namespace: "gregor.1"
// Protocol: "incoming"
#![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::*;

#[derive(Serialize, Deserialize, Debug)]
pub struct SyncResult {
  #[serde(default)]
  pub msgs: Option<Vec<InBandMessage>>,
  #[serde(default)]
  pub hash: Option<String>,
}









// @compression_type("none")








#[derive(Serialize, Deserialize, Debug)]
pub struct ConnectedDevice {
  pub deviceID: Option<DeviceID>,
  #[serde(default)]
  pub deviceType: Option<String>,
  #[serde(default)]
  pub devicePlatform: Option<String>,
  #[serde(default)]
  pub userAgent: Option<String>,
}

#[derive(Serialize, Deserialize, Debug)]
pub struct ConnectedUser {
  pub uid: Option<UID>,
  #[serde(default)]
  pub devices: Option<Vec<ConnectedDevice>>,
}