pub struct SettingsType {Show 54 fields
pub app_clear: bool,
pub app_global_hotkey: String,
pub app_dismiss_architecture_warning: bool,
pub app_default_new_block: String,
pub app_show_overlay_block_nums: Option<bool>,
pub term_clear: bool,
pub term_font_size: f64,
pub term_font_family: String,
pub term_theme: String,
pub term_disable_web_gl: bool,
pub term_local_shell_path: String,
pub term_local_shell_opts: Vec<String>,
pub term_scrollback: Option<i64>,
pub term_copy_on_select: Option<bool>,
pub term_transparency: Option<f64>,
pub term_allow_bracketed_paste: Option<bool>,
pub term_shift_enter_newline: Option<bool>,
pub term_agent_max_runtime_hours: f64,
pub term_agent_idle_timeout_mins: f64,
pub cmd_env: HashMap<String, String>,
pub block_header_clear: bool,
pub block_header_show_block_ids: bool,
pub preview_show_hidden_files: Option<bool>,
pub tab_preset: String,
pub widget_clear: bool,
pub widget_show_help: Option<bool>,
pub widget_icon_only: Option<bool>,
pub window_clear: bool,
pub window_transparent: bool,
pub window_blur: bool,
pub window_opacity: Option<f64>,
pub window_bg_color: String,
pub window_reduced_motion: bool,
pub window_tile_gap_size: Option<i64>,
pub window_show_menu_bar: bool,
pub window_native_title_bar: bool,
pub window_disable_hardware_acceleration: bool,
pub window_max_tab_cache_size: i32,
pub window_magnified_block_opacity: Option<f64>,
pub window_magnified_block_size: Option<f64>,
pub window_magnified_block_blur_primary_px: Option<i64>,
pub window_magnified_block_blur_secondary_px: Option<i64>,
pub window_confirm_close: bool,
pub window_save_last_window: bool,
pub window_dimensions: String,
pub window_zoom: Option<f64>,
pub telemetry_clear: bool,
pub telemetry_enabled: bool,
pub telemetry_interval: f64,
pub telemetry_numpoints: Option<i64>,
pub conn_clear: bool,
pub network_lan_discovery: bool,
pub voice_enabled: Option<bool>,
pub extra: HashMap<String, Value>,
}Expand description
Application settings. Matches Go’s wconfig.SettingsType JSON tags.
Fields use pointer-like Option for nullable booleans/numbers
to distinguish “not set” from “false/0”.
Fields§
§app_clear: bool§app_global_hotkey: String§app_dismiss_architecture_warning: bool§app_default_new_block: String§app_show_overlay_block_nums: Option<bool>§term_clear: bool§term_font_size: f64§term_font_family: String§term_theme: String§term_disable_web_gl: bool§term_local_shell_path: String§term_local_shell_opts: Vec<String>§term_scrollback: Option<i64>§term_copy_on_select: Option<bool>§term_transparency: Option<f64>§term_allow_bracketed_paste: Option<bool>§term_shift_enter_newline: Option<bool>§term_agent_max_runtime_hours: f64Maximum runtime in hours before the watchdog kills an agent pane. 0 (default) disables the limit.
term_agent_idle_timeout_mins: f64Minutes of PTY silence before the watchdog kills an idle agent pane. 0 (default) disables the limit.
cmd_env: HashMap<String, String>§block_header_clear: bool§block_header_show_block_ids: bool§tab_preset: String§widget_clear: bool§widget_show_help: Option<bool>§widget_icon_only: Option<bool>§window_clear: bool§window_transparent: bool§window_blur: bool§window_opacity: Option<f64>§window_bg_color: String§window_reduced_motion: bool§window_tile_gap_size: Option<i64>§window_native_title_bar: bool§window_disable_hardware_acceleration: bool§window_max_tab_cache_size: i32§window_magnified_block_opacity: Option<f64>§window_magnified_block_size: Option<f64>§window_magnified_block_blur_primary_px: Option<i64>§window_magnified_block_blur_secondary_px: Option<i64>§window_confirm_close: bool§window_save_last_window: bool§window_dimensions: String§window_zoom: Option<f64>§telemetry_clear: bool§telemetry_enabled: bool§telemetry_interval: f64§telemetry_numpoints: Option<i64>§conn_clear: bool§network_lan_discovery: bool§voice_enabled: Option<bool>§extra: HashMap<String, Value>Catch-all for unknown/dynamic keys (e.g. widget:hidden@defwidget@sysinfo).
These pass through serde unchanged so the frontend can access them as flat settings keys.
Trait Implementations§
Source§impl Clone for SettingsType
impl Clone for SettingsType
Source§fn clone(&self) -> SettingsType
fn clone(&self) -> SettingsType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SettingsType
impl Debug for SettingsType
Source§impl Default for SettingsType
impl Default for SettingsType
Source§fn default() -> SettingsType
fn default() -> SettingsType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SettingsType
impl<'de> Deserialize<'de> for SettingsType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SettingsType
impl RefUnwindSafe for SettingsType
impl Send for SettingsType
impl Sync for SettingsType
impl Unpin for SettingsType
impl UnwindSafe for SettingsType
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,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.