aboutsummaryrefslogtreecommitdiff
path: root/src/gentoo/package.rs
blob: a74a09c1b652288c9aaf89130649d93aa686d359 (plain) (blame)
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
use std::collections::HashSet;

use crate::gentoo::UseFlag;

#[derive(Debug, Clone)]
#[allow(dead_code)]
pub struct Package {
    pub name: String,
    pub use_flags: HashSet<UseFlag>,
    pub version: String,
    pub repository: String,
    pub maintainer: Option<String>,
    pub description: Option<String>,
    pub homepage: Option<Vec<String>>,
    pub license: Option<String>,
    pub size: usize,
}

// #[allow(dead_code)]
// impl Package {
//     pub fn new(
//         name: String,
//         version: String,
//         repository: String,
//         size: usize,
//         homepage: Option<Vec<String>>,
//         license: Option<String>,
//         description: Option<String>,
//         maintainer: Option<String>,
//         use_flags: HashSet<UseFlag>,
//     ) -> Self {
//         Package {
//             name,
//             use_flags,
//             version,
//             repository,
//             maintainer,
//             description,
//             homepage,
//             license,
//             size,
//         }
//     }
// }