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
#[derive(Clone, Debug)]
pub struct PushConfiguration {
pub server_host: String,
pub socket_protocol: Option<String>,
pub http_protocol: Option<String>,
pub bridge_type: Option<String>,
pub registration_id: Option<String>,
pub enabled: bool,
pub ping_interval: u64,
pub sender_id: String,
pub database_path: Option<String>,
}
impl Default for PushConfiguration {
fn default() -> PushConfiguration {
PushConfiguration {
server_host: String::from("push.services.mozilla.com"),
socket_protocol: None,
http_protocol: Some(String::from("https")),
bridge_type: Some(String::from("fcm")),
registration_id: Some(String::from("deafbeef00000000")),
enabled: true,
ping_interval: 1800,
sender_id: String::from(""),
database_path: None,
}
}
}