1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/// Controls the output format for `ConfigError::pretty_print`.
///
/// Different modes are suitable for different contexts - List mode is more compact
/// and suitable for logs, while Table mode provides better visual structure for
/// terminal output and debugging.
///
/// # Examples
///
/// ```rust
/// use tryphon::{Config, ErrorPrintMode};
///
/// #[derive(Config)]
/// struct AppConfig {
/// #[env("MISSING_VAR")]
/// value: String,
/// }
///
/// match AppConfig::load() {
/// Ok(_) => println!("Config loaded"),
/// Err(e) => {
/// // Use List mode for compact output
/// eprintln!("{}", e.pretty_print(ErrorPrintMode::List));
///
/// // Or use Table mode for structured output
/// eprintln!("{}", e.pretty_print(ErrorPrintMode::Table));
/// }
/// }
/// ```