crate_cli/fmt/driver/
struct.rs1use super::*;
2
3#[derive(Clone, Data, Debug, Default, Eq, New, PartialEq)]
5pub struct UnifiedFmtReport {
6 #[get(type(copy))]
8 #[set(pub(crate))]
9 #[get_mut(skip)]
10 pub(crate) files_scanned: usize,
11 #[get(type(copy))]
13 #[set(pub(crate))]
14 #[get_mut(skip)]
15 pub(crate) files_formatted: usize,
16 #[get(type(copy))]
18 #[set(pub(crate))]
19 #[get_mut(skip)]
20 pub(crate) check_mode: bool,
21 #[set(pub(crate))]
23 #[get_mut(pub(crate))]
24 pub(crate) changed_files: Vec<String>,
25}
26
27#[derive(Clone, Debug, Eq, Getter, New, PartialEq)]
29pub(crate) struct PrettierIgnoreRule {
30 #[get(pub(crate))]
32 pub(crate) pattern: String,
33 #[get(pub(crate), type(copy))]
35 pub(crate) negated: bool,
36 #[get(pub(crate), type(copy))]
38 pub(crate) dir_only: bool,
39 #[get(pub(crate), type(copy))]
41 pub(crate) anchored: bool,
42}