quantrs2_tytan/solution_debugger/
config.rs1use serde::Serialize;
4
5#[derive(Debug, Clone, Serialize)]
6pub struct DebuggerConfig {
7 pub detailed_analysis: bool,
9 pub check_constraints: bool,
11 pub analyze_energy: bool,
13 pub compare_solutions: bool,
15 pub generate_visuals: bool,
17 pub output_format: DebugOutputFormat,
19 pub verbosity: VerbosityLevel,
21}
22
23#[derive(Debug, Clone, Serialize)]
24pub enum DebugOutputFormat {
25 Console,
27 Html,
29 Json,
31 Markdown,
33}
34
35#[derive(Debug, Clone, PartialEq, Ord, PartialOrd, Eq, Serialize)]
36pub enum VerbosityLevel {
37 Minimal,
39 Normal,
41 Detailed,
43 Debug,
45}
46
47impl Default for DebuggerConfig {
48 fn default() -> Self {
49 Self {
50 detailed_analysis: true,
51 check_constraints: true,
52 analyze_energy: true,
53 compare_solutions: false,
54 generate_visuals: false,
55 output_format: DebugOutputFormat::Console,
56 verbosity: VerbosityLevel::Normal,
57 }
58 }
59}