SettingsType

Struct SettingsType 

Source
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: f64

Maximum runtime in hours before the watchdog kills an agent pane. 0 (default) disables the limit.

§term_agent_idle_timeout_mins: f64

Minutes 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§preview_show_hidden_files: Option<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_show_menu_bar: bool§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

Source§

fn clone(&self) -> SettingsType

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SettingsType

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for SettingsType

Source§

fn default() -> SettingsType

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for SettingsType

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for SettingsType

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> Downcast for T
where T: 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>

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)

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)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Sync + Send>

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FromRef<T> for T
where T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> PolicyExt for T
where T: ?Sized,

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

§

impl<A, B, T> HttpServerConnExec<A, B> for T
where B: Body,