hyperlane_cli/fmt/struct.rs
1use super::*;
2
3/// Structured formatting summary returned by `hyperlane fmt`.
4#[derive(Clone, Data, Debug, Default, Eq, New, PartialEq)]
5pub struct HyperlaneFmtReport {
6 /// Number of non-Rust text files scanned by `crate-cli`.
7 #[get(type(copy))]
8 pub(crate) text_files_scanned: usize,
9 /// Number of non-Rust text files formatted by `crate-cli`.
10 #[get(type(copy))]
11 pub(crate) text_files_formatted: usize,
12 /// Number of `.rs` files scanned for Hyperlane attribute formatting.
13 #[get(type(copy))]
14 pub(crate) rust_files_scanned: usize,
15 /// Number of `.rs` files whose Hyperlane attributes required normalization.
16 #[get(type(copy))]
17 pub(crate) rust_files_formatted: usize,
18 /// Whether `--check` dry-run mode was active.
19 #[get(type(copy))]
20 pub(crate) check_only: bool,
21 /// Display paths of all files modified (or needing modification in `--check` mode).
22 pub(crate) changed_files: Vec<String>,
23}