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

#[derive(Debug, Clone)]
pub struct AdvertVideo {
    pub interest: i32,
    pub url: String, 
    pub length_sec: i32
}

#[derive(Debug, Clone)]
pub struct Order {
    pub id: String,
    pub credits: i32, 
    pub user: String
}

#[derive(Debug, Clone)]
pub struct AdvertVideoOrder {
    pub video_id: i32,
    pub interest: i32,
    pub url: String, 
    pub length_sec: i32,
    pub order: String
}

#[derive(Debug, Clone)]
pub struct Tracker {
    pub id: String,
    pub location: Option<i32>
}

#[derive(Debug, Clone)]
pub struct Receiver {
    pub id: String,
    pub location: i32
}

#[derive(Debug, Clone, Copy)]
pub struct Display {
    pub id: i32,
    pub location: i32
}

#[derive(Debug, Clone)]
pub struct Agency {
    pub name: String,
    pub orgnr: String
}