use super::*;
#[derive(Clone, Data, Debug, Default, Deserialize, Eq, New, PartialEq, Serialize)]
pub struct LiveInspectReport {
pub(crate) url: String,
#[get(type(copy))]
pub(crate) reachable: bool,
pub(crate) health_status: String,
#[new(skip)]
pub(crate) protocol_version: String,
#[new(skip)]
pub(crate) active_route: String,
#[new(skip)]
#[get(type(copy))]
pub(crate) node_count: usize,
#[new(skip)]
#[get(type(copy))]
pub(crate) anomaly_count: usize,
#[new(skip)]
pub(crate) anomalies: Vec<String>,
#[new(skip)]
pub(crate) error: Option<String>,
}
#[derive(Clone, Debug, Deserialize, Eq, Getter, New, PartialEq, Serialize)]
pub struct DistFileStat {
pub(crate) path: String,
#[get(type(copy))]
pub(crate) size_bytes: u64,
}
#[derive(Clone, Data, Debug, Default, Deserialize, Eq, New, PartialEq, Serialize)]
pub struct DistInspectReport {
pub(crate) dist_dir: String,
#[get(type(copy))]
pub(crate) file_count: usize,
#[get(type(copy))]
pub(crate) total_bytes: u64,
#[new(skip)]
pub(crate) largest_files: Vec<DistFileStat>,
#[new(skip)]
pub(crate) js_files: Vec<String>,
#[new(skip)]
#[get(type(copy))]
pub(crate) zero_js_compliant: bool,
#[new(skip)]
#[get(type(copy))]
pub(crate) manifest_present: bool,
#[new(skip)]
pub(crate) manifest_version: Option<String>,
#[new(skip)]
#[get(type(copy))]
pub(crate) manifest_verified: bool,
#[new(skip)]
pub(crate) manifest_errors: Vec<String>,
}