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.
amethyst/src/internal/structs.rs

26 lines
598 B
Rust

3 years ago
#[derive(Debug, serde::Serialize)]
2 years ago
/// Struct for packages exiting [`crate::internal::sort()`].
pub struct Sorted {
#[allow(dead_code)]
pub repo: Vec<String>,
#[allow(dead_code)]
pub aur: Vec<String>,
#[allow(dead_code)]
3 years ago
pub nf: Vec<String>,
}
impl Sorted {
pub fn new(repo: Vec<String>, aur: Vec<String>, nf: Vec<String>) -> Self {
2 years ago
Self { repo, aur, nf }
3 years ago
}
}
#[derive(Clone, Debug, Copy)]
2 years ago
/// Options to be passed down to internal functions
3 years ago
pub struct Options {
pub noconfirm: bool,
pub quiet: bool,
pub asdeps: bool,
pub upgrade: bool,
3 years ago
}