use super::*;
#[derive(Clone, Data, Debug, Eq, New, PartialEq)]
pub struct CleanOptions {
pub(crate) root_dir: PathBuf,
#[get(type(copy))]
pub(crate) all: bool,
#[get(type(copy))]
pub(crate) dry_run: bool,
}
#[derive(Clone, Debug, Deserialize, Eq, Getter, New, PartialEq, Serialize)]
pub struct CleanEntry {
pub(crate) path: String,
pub(crate) category: String,
#[get(type(copy))]
pub(crate) bytes_reclaimed: u64,
#[get(type(copy))]
pub(crate) removed: bool,
}
#[derive(Clone, Debug, Deserialize, Eq, Getter, New, PartialEq, Serialize)]
pub struct CleanReport {
pub(crate) root_dir: String,
#[get(type(copy))]
pub(crate) dry_run: bool,
pub(crate) entries: Vec<CleanEntry>,
#[get(type(copy))]
pub(crate) total_bytes_reclaimed: u64,
#[get(type(copy))]
pub(crate) cargo_clean_ran: bool,
}