pub struct AppSettings {
pub window_x: Option<i32>,
pub window_y: Option<i32>,
pub window_width: Option<i32>,
pub window_height: Option<i32>,
pub theme: Option<String>,
pub last_vault: Option<String>,
pub sidebar_visible: Option<bool>,
pub recent_vaults: Option<Vec<String>>,
pub last_page_per_vault: Option<HashMap<String, String>>,
pub open_tabs_per_vault: Option<HashMap<String, Vec<String>>>,
pub active_tab_per_vault: Option<HashMap<String, i32>>,
}Expand description
Persisted application settings (window geometry, theme, recent vaults, etc.).
Serialized as JSON. Unknown fields are silently ignored for forward compatibility — newer GUI versions can add settings without breaking older CLI/MCP clients.
Fields§
§window_x: Option<i32>§window_y: Option<i32>§window_width: Option<i32>§window_height: Option<i32>§theme: Option<String>§last_vault: Option<String>§recent_vaults: Option<Vec<String>>§last_page_per_vault: Option<HashMap<String, String>>§open_tabs_per_vault: Option<HashMap<String, Vec<String>>>§active_tab_per_vault: Option<HashMap<String, i32>>Trait Implementations§
Source§impl Clone for AppSettings
impl Clone for AppSettings
Source§fn clone(&self) -> AppSettings
fn clone(&self) -> AppSettings
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 AppSettings
impl Debug for AppSettings
Source§impl Default for AppSettings
impl Default for AppSettings
Source§fn default() -> AppSettings
fn default() -> AppSettings
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AppSettingswhere
AppSettings: Default,
impl<'de> Deserialize<'de> for AppSettingswhere
AppSettings: Default,
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 AppSettings
impl RefUnwindSafe for AppSettings
impl Send for AppSettings
impl Sync for AppSettings
impl Unpin for AppSettings
impl UnsafeUnpin for AppSettings
impl UnwindSafe for AppSettings
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