You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
673 B
Rust
34 lines
673 B
Rust
#[derive(Debug, serde::Serialize)]
|
|
pub struct Sorted {
|
|
#[allow(dead_code)]
|
|
pub repo: Vec<String>,
|
|
#[allow(dead_code)]
|
|
pub aur: Vec<String>,
|
|
#[allow(dead_code)]
|
|
pub nf: Vec<String>,
|
|
}
|
|
|
|
impl Sorted {
|
|
pub fn new(repo: Vec<String>, aur: Vec<String>, nf: Vec<String>) -> Self {
|
|
let a: Sorted = Sorted { repo, aur, nf };
|
|
a
|
|
}
|
|
}
|
|
|
|
#[derive(Clone, Copy)]
|
|
pub struct Options {
|
|
pub verbosity: i32,
|
|
pub noconfirm: bool,
|
|
}
|
|
|
|
impl Options {
|
|
#[allow(dead_code)]
|
|
pub fn new(verbosity: i32, noconfirm: bool) -> Self {
|
|
let a: Options = Options {
|
|
verbosity,
|
|
noconfirm,
|
|
};
|
|
a
|
|
}
|
|
}
|