1
use serde::Deserialize;
2

            
3
18
#[derive(Deserialize)]
4
pub struct RouteIdPath {
5
    pub route_id: String,
6
}
7

            
8
114
#[derive(Deserialize)]
9
pub struct PostNetworkRouteBody {
10
    pub data: PostNetworkRouteData,
11
}
12

            
13
171
#[derive(Deserialize)]
14
pub struct PostNetworkRouteData {
15
    #[serde(rename = "networkId")]
16
    pub network_id: String,
17
    #[serde(rename = "applicationId")]
18
    pub application_id: String,
19
}
20

            
21
300
#[derive(Deserialize)]
22
pub struct GetNetworkRouteCountQuery {
23
    pub unit: Option<String>,
24
    pub application: Option<String>,
25
    pub network: Option<String>,
26
}
27

            
28
498
#[derive(Clone, Deserialize)]
29
pub struct GetNetworkRouteListQuery {
30
    pub unit: Option<String>,
31
    pub application: Option<String>,
32
    pub network: Option<String>,
33
    pub offset: Option<u64>,
34
    pub limit: Option<u64>,
35
    pub sort: Option<String>,
36
    pub format: Option<ListFormat>,
37
}
38

            
39
12
#[derive(Clone, Deserialize, PartialEq)]
40
pub enum ListFormat {
41
    #[serde(rename = "array")]
42
    Array,
43
    #[serde(rename = "data")]
44
    Data,
45
}