Skip to main content

euv_cli/fmt/
struct.rs

1use super::*;
2
3/// Structured summary produced by `euv fmt` across workspace Rust sources and macro invocations.
4#[derive(Clone, Data, Debug, Default, Deserialize, Eq, New, PartialEq, Serialize)]
5pub struct FmtReport {
6    /// Total `.rs` files scanned across the target workspace or directory.
7    #[get(type(copy))]
8    pub(crate) files_scanned: usize,
9    /// Number of `.rs` files whose macro blocks required reformatting.
10    #[get(type(copy))]
11    pub(crate) files_formatted: usize,
12    /// Total `euv` macro blocks (`view!`, `style!`, etc.) normalized.
13    #[get(type(copy))]
14    pub(crate) macros_formatted: usize,
15    /// Whether `--check` dry-run verification mode was active.
16    #[get(type(copy))]
17    pub(crate) check_only: bool,
18    /// Relative or display paths of files needing or receiving macro formatting.
19    pub(crate) changed_files: Vec<String>,
20}