pub struct SettingsState {Show 48 fields
pub selected: usize,
pub tab: SettingsTab,
pub model: String,
pub model_options: Vec<String>,
pub chosen_models: Vec<String>,
pub theme_name: String,
pub theme_options: Vec<String>,
pub thinking_level: ThinkingLevel,
pub max_tokens: u32,
pub max_turns: u32,
pub observation_mask: f64,
pub sidebar_style: SidebarStyle,
pub tool_output: ToolOutputDisplay,
pub tool_output_lines: usize,
pub read_max_lines: usize,
pub sidebar_width: u16,
pub word_wrap: bool,
pub animations: AnimationLevel,
pub chat_tool_display: ChatToolDisplay,
pub auto_open_sidebar: bool,
pub sidebar_auto_open_width: u16,
pub thinking_lines: usize,
pub streaming_lines: usize,
pub mouse_scroll_lines: usize,
pub keyboard_scroll_lines: usize,
pub show_timestamps: bool,
pub show_cost: bool,
pub show_context_usage: bool,
pub notify_on_agent_complete: bool,
pub continue_policy: ContinuePolicy,
pub improve_auto_turn_budget: u32,
pub loop_turn_budget: u32,
pub web_search_provider: Option<SearchProvider>,
pub mana_scope: ManaScopePreference,
pub mana_auto_commit: bool,
pub mana_auto_close_parent: bool,
pub mana_verify_timeout: u64,
pub mana_run_background: bool,
pub mana_max_workers: u32,
pub mana_review_after_run: bool,
pub mana_continue_after_failure: bool,
pub tavily_api_key: String,
pub exa_api_key: String,
pub tavily_configured: bool,
pub exa_configured: bool,
pub editing_number: bool,
pub edit_buffer: String,
pub dirty: bool,
}Expand description
State for the settings overlay.
Fields§
§selected: usize§tab: SettingsTab§model: String§model_options: Vec<String>§chosen_models: Vec<String>§theme_name: String§theme_options: Vec<String>§thinking_level: ThinkingLevel§max_tokens: u32§max_turns: u32§observation_mask: f64§tool_output: ToolOutputDisplay§tool_output_lines: usize§read_max_lines: usize§word_wrap: bool§animations: AnimationLevel§chat_tool_display: ChatToolDisplay§thinking_lines: usize§streaming_lines: usize§mouse_scroll_lines: usize§keyboard_scroll_lines: usize§show_timestamps: bool§show_cost: bool§show_context_usage: bool§notify_on_agent_complete: bool§continue_policy: ContinuePolicy§improve_auto_turn_budget: u32§loop_turn_budget: u32§web_search_provider: Option<SearchProvider>§mana_scope: ManaScopePreference§mana_auto_commit: bool§mana_auto_close_parent: bool§mana_verify_timeout: u64§mana_run_background: bool§mana_max_workers: u32§mana_review_after_run: bool§mana_continue_after_failure: bool§tavily_api_key: String§exa_api_key: String§tavily_configured: bool§exa_configured: bool§editing_number: bool§edit_buffer: String§dirty: boolImplementations§
Source§impl SettingsState
impl SettingsState
pub fn switch_tab_forward(&mut self)
pub fn switch_tab_backward(&mut self)
pub fn new( config: &Config, model_name: &str, models: &[ModelMeta], auth_store: &AuthStore, ) -> Self
pub fn current_field(&self) -> SettingsField
pub fn move_up(&mut self)
pub fn move_down(&mut self)
Sourcepub fn cycle_forward(&mut self)
pub fn cycle_forward(&mut self)
Cycle the current field’s value forward.
Sourcepub fn cycle_backward(&mut self)
pub fn cycle_backward(&mut self)
Cycle the current field’s value backward.
Sourcepub fn start_edit(&mut self)
pub fn start_edit(&mut self)
Begin direct numeric input for the current field.
pub fn push_char(&mut self, c: char)
pub fn pop_char(&mut self)
Sourcepub fn commit_edit(&mut self)
pub fn commit_edit(&mut self)
Commit the edit buffer to the underlying field value.
Sourcepub fn apply_to_config(&self, config: &mut Config)
pub fn apply_to_config(&self, config: &mut Config)
Write current settings into a Config for saving and in-session use.
Trait Implementations§
Source§impl Clone for SettingsState
impl Clone for SettingsState
Source§fn clone(&self) -> SettingsState
fn clone(&self) -> SettingsState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SettingsState
impl RefUnwindSafe for SettingsState
impl Send for SettingsState
impl Sync for SettingsState
impl Unpin for SettingsState
impl UnsafeUnpin for SettingsState
impl UnwindSafe for SettingsState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more