kutil_cli/debug/format.rs
1//
2// DebugFormat
3//
4
5/// Debug format. Allows for variations of the debug respresentation.
6///
7/// There is no requirement for a [Debuggable] to support the various formats, thus it can only be
8/// used reliably when the types are known in advance to support it.
9#[derive(Clone, Debug, Default)]
10pub enum DebugFormat {
11 /// Verbose implies a consistent full representation with no optional information omitted.
12 Verbose,
13
14 /// Reduced imples an optimized representation in which shorter variations may be used when
15 /// possible, and some optional information may be omitted.
16 ///
17 /// This is the default format.
18 #[default]
19 Reduced,
20
21 /// Compact implies a single-line format.
22 Compact,
23}