1
use serde::Deserialize;
2

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

            
8
354
#[derive(Deserialize)]
9
pub struct GetDlDataBufferCountQuery {
10
    pub unit: Option<String>,
11
    pub application: Option<String>,
12
    pub network: Option<String>,
13
    pub device: Option<String>,
14
}
15

            
16
588
#[derive(Clone, Deserialize)]
17
pub struct GetDlDataBufferListQuery {
18
    pub unit: Option<String>,
19
    pub application: Option<String>,
20
    pub network: Option<String>,
21
    pub device: Option<String>,
22
    pub offset: Option<u64>,
23
    pub limit: Option<u64>,
24
    pub sort: Option<String>,
25
    pub format: Option<ListFormat>,
26
}
27

            
28
12
#[derive(Clone, Deserialize, PartialEq)]
29
pub enum ListFormat {
30
    #[serde(rename = "array")]
31
    Array,
32
    #[serde(rename = "data")]
33
    Data,
34
}