1use std::fmt;
4
5#[derive(Clone, Copy, Debug, Eq, PartialEq)]
7pub enum SettingName {
8 ActiveProjectId,
10 ActiveTab,
12 DefaultFastAgent,
14 DefaultFastModel,
16 DefaultHarnessModel,
19 DefaultFastReasoningLevel,
21 DefaultFastSpeedMode,
23 DefaultReviewAgent,
25 DefaultReviewModel,
27 DefaultReviewReasoningLevel,
29 DefaultReviewSpeedMode,
31 DefaultResponseStyle,
33 DefaultSmartAgent,
35 DefaultSmartModel,
37 DefaultSmartReasoningLevel,
39 DefaultSmartSpeedMode,
41 IncludeCoauthoredByAgentty,
44 LaunchConfiguration,
46 LastUsedModelAsDefault,
48 ProjectCatalogVisible,
50 ProjectDiscoveryPromptSeen,
52 TelemetryInstallationId,
54 Theme,
56}
57
58impl SettingName {
59 pub fn as_str(self) -> &'static str {
61 match self {
62 Self::ActiveProjectId => "ActiveProjectId",
63 Self::ActiveTab => "ActiveTab",
64 Self::DefaultFastAgent => "DefaultFastAgent",
65 Self::DefaultFastModel => "DefaultFastModel",
66 Self::DefaultHarnessModel => "DefaultHarnessModel",
67 Self::DefaultFastReasoningLevel => "DefaultFastReasoningLevel",
68 Self::DefaultFastSpeedMode => "DefaultFastSpeedMode",
69 Self::DefaultReviewAgent => "DefaultReviewAgent",
70 Self::DefaultReviewModel => "DefaultReviewModel",
71 Self::DefaultReviewReasoningLevel => "DefaultReviewReasoningLevel",
72 Self::DefaultReviewSpeedMode => "DefaultReviewSpeedMode",
73 Self::DefaultResponseStyle => "DefaultResponseStyle",
74 Self::DefaultSmartAgent => "DefaultSmartAgent",
75 Self::DefaultSmartModel => "DefaultSmartModel",
76 Self::DefaultSmartReasoningLevel => "DefaultSmartReasoningLevel",
77 Self::DefaultSmartSpeedMode => "DefaultSmartSpeedMode",
78 Self::IncludeCoauthoredByAgentty => "IncludeCoauthoredByAgentty",
79 Self::LaunchConfiguration => "LaunchConfiguration",
80 Self::LastUsedModelAsDefault => "LastUsedModelAsDefault",
81 Self::ProjectCatalogVisible => "ProjectCatalogVisible",
82 Self::ProjectDiscoveryPromptSeen => "ProjectDiscoveryPromptSeen",
83 Self::TelemetryInstallationId => "TelemetryInstallationId",
84 Self::Theme => "Theme",
85 }
86 }
87}
88
89impl fmt::Display for SettingName {
90 fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result {
91 formatter.write_str(self.as_str())
92 }
93}
94
95#[cfg(test)]
96#[path = "setting_test.rs"]
97mod tests;