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
#[cfg(feature = "serde")]
use serde::{Deserialize, Serialize};
use crate::shared::PackageWithVersion;
#[derive(Debug, Clone, PartialEq, Eq)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
pub struct PathItem {
pub real: String,
pub move_to: String,
}
#[derive(Debug, Clone, PartialEq, Eq, Copy)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
pub enum Version {
V1_0,
V2_0,
VUnknown,
}
#[derive(Debug, Clone, PartialEq, Eq)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
pub struct Control {
pub package: String,
pub source: Option<String>,
pub version: String,
pub section: Option<String>,
pub priority: Option<String>,
pub architecture: String,
pub essential: Option<String>,
pub install_size: Option<u64>,
pub maintainer: String,
pub description: String,
pub homepage: Option<String>,
pub built_using: Option<String>,
pub depends: Vec<PackageWithVersion>,
pub pre_depends: Vec<PackageWithVersion>,
pub recommends: Vec<PackageWithVersion>,
pub suggests: Vec<PackageWithVersion>,
pub enhances: Vec<PackageWithVersion>,
pub breaks: Vec<PackageWithVersion>,
pub conflicts: Vec<PackageWithVersion>,
}