pub struct GuiConfig {Show 25 fields
pub theme: String,
pub colored_tray_icon: bool,
pub notifications_enabled: bool,
pub notification_sound: bool,
pub start_minimized: bool,
pub close_to_tray: bool,
pub temperature_unit: String,
pub pressure_unit: String,
pub sidebar_collapsed: bool,
pub compact_mode: bool,
pub window_width: Option<f32>,
pub window_height: Option<f32>,
pub window_x: Option<f32>,
pub window_y: Option<f32>,
pub co2_warning_threshold: u16,
pub co2_danger_threshold: u16,
pub radon_warning_threshold: u32,
pub radon_danger_threshold: u32,
pub default_export_format: String,
pub export_directory: String,
pub service_url: String,
pub show_co2: bool,
pub show_temperature: bool,
pub show_humidity: bool,
pub show_pressure: bool,
}Expand description
GUI-specific configuration settings.
Controls appearance and behavior of the native GUI application.
Fields§
§theme: StringTheme preference: “dark”, “light”, or “system”
colored_tray_icon: boolShow colored tray icon for elevated CO2 levels. When false, always uses native template icon (auto dark/light). When true, shows colored icons (yellow/orange/red) for elevated CO2.
notifications_enabled: boolEnable desktop notifications for CO2 threshold alerts.
notification_sound: boolPlay sound with desktop notifications.
start_minimized: boolStart the application minimized to system tray.
close_to_tray: boolMinimize to tray instead of quitting when closing window.
temperature_unit: StringTemperature unit preference: “celsius” or “fahrenheit”. Used when device settings are not available.
pressure_unit: StringPressure unit preference: “hpa” or “inhg”. Used for pressure display.
Whether the sidebar is collapsed.
compact_mode: boolEnable compact mode for denser layout on smaller screens.
window_width: Option<f32>Remembered window width.
window_height: Option<f32>Remembered window height.
window_x: Option<f32>Remembered window X position.
window_y: Option<f32>Remembered window Y position.
co2_warning_threshold: u16CO2 warning threshold in ppm (yellow/amber indicator).
co2_danger_threshold: u16CO2 danger threshold in ppm (red indicator).
radon_warning_threshold: u32Radon warning threshold in Bq/m³.
radon_danger_threshold: u32Radon danger threshold in Bq/m³.
default_export_format: StringDefault export format: “csv” or “json”.
export_directory: StringCustom export directory path. Empty string means use default (Downloads).
service_url: StringURL for the aranet-service REST API. Default: “http://localhost:8080”
show_co2: boolShow CO2 readings in dashboard.
show_temperature: boolShow temperature readings in dashboard.
show_humidity: boolShow humidity readings in dashboard.
show_pressure: boolShow pressure readings in dashboard.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GuiConfig
impl<'de> Deserialize<'de> for GuiConfig
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>,
Auto Trait Implementations§
impl Freeze for GuiConfig
impl RefUnwindSafe for GuiConfig
impl Send for GuiConfig
impl Sync for GuiConfig
impl Unpin for GuiConfig
impl UnwindSafe for GuiConfig
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
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>
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>
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