pub struct MergedSettings {Show 16 fields
pub safe_commands: Vec<String>,
pub safe_commands_source: SettingSource,
pub denied_commands: Vec<String>,
pub denied_commands_source: SettingSource,
pub auto_accept_mode: AutoAcceptMode,
pub auto_accept_mode_source: SettingSource,
pub context_limit: Option<u32>,
pub context_limit_source: SettingSource,
pub project_md_files: Vec<String>,
pub project_md_files_source: SettingSource,
pub preferred_mode: AgentMode,
pub preferred_mode_source: SettingSource,
pub auto_compact_enabled: bool,
pub auto_compact_enabled_source: SettingSource,
pub questions_enabled: bool,
pub questions_enabled_source: SettingSource,
}Expand description
Effective merged settings — the result of layering global + project settings.
This is a read-only view. Each field has a source annotation for display.
Fields§
§safe_commands: Vec<String>Merged safe command prefixes (project extends global)
safe_commands_source: SettingSource§denied_commands: Vec<String>Merged denied command prefixes (project overrides global)
denied_commands_source: SettingSource§auto_accept_mode: AutoAcceptMode§auto_accept_mode_source: SettingSource§context_limit: Option<u32>§context_limit_source: SettingSource§project_md_files: Vec<String>§project_md_files_source: SettingSource§preferred_mode: AgentMode§preferred_mode_source: SettingSource§auto_compact_enabled: bool§auto_compact_enabled_source: SettingSource§questions_enabled: bool§questions_enabled_source: SettingSourceImplementations§
Source§impl MergedSettings
impl MergedSettings
Sourcepub fn tool_availability(&self) -> ToolAvailability
pub fn tool_availability(&self) -> ToolAvailability
Which optional tools the model is allowed to use, per merged settings.
Trait Implementations§
Source§impl Clone for MergedSettings
impl Clone for MergedSettings
Auto Trait Implementations§
impl Freeze for MergedSettings
impl RefUnwindSafe for MergedSettings
impl Send for MergedSettings
impl Sync for MergedSettings
impl Unpin for MergedSettings
impl UnsafeUnpin for MergedSettings
impl UnwindSafe for MergedSettings
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more