pub struct AppSettings {Show 25 fields
pub show_in_tray: bool,
pub minimize_to_tray_on_close: bool,
pub enable_claude_plugin_integration: bool,
pub skip_claude_onboarding: bool,
pub claude_config_dir: Option<String>,
pub codex_config_dir: Option<String>,
pub gemini_config_dir: Option<String>,
pub opencode_config_dir: Option<String>,
pub openclaw_config_dir: Option<String>,
pub hermes_config_dir: Option<String>,
pub current_provider_claude: Option<String>,
pub current_provider_codex: Option<String>,
pub current_provider_gemini: Option<String>,
pub current_provider_opencode: Option<String>,
pub current_provider_openclaw: Option<String>,
pub current_provider_hermes: Option<String>,
pub visible_apps: VisibleApps,
pub language: Option<String>,
pub launch_on_startup: bool,
pub skill_sync_method: SyncMethod,
pub security: Option<SecuritySettings>,
pub webdav_sync: Option<WebDavSyncSettings>,
pub backup_retain_count: Option<u32>,
pub custom_endpoints_claude: HashMap<String, CustomEndpoint>,
pub custom_endpoints_codex: HashMap<String, CustomEndpoint>,
}Expand description
应用设置结构,允许覆盖默认配置目录
Fields§
§show_in_tray: bool§minimize_to_tray_on_close: bool§enable_claude_plugin_integration: bool是否启用 Claude 插件联动
skip_claude_onboarding: bool是否跳过 Claude Code 初次安装确认
claude_config_dir: Option<String>§codex_config_dir: Option<String>§gemini_config_dir: Option<String>§opencode_config_dir: Option<String>§openclaw_config_dir: Option<String>§hermes_config_dir: Option<String>§current_provider_claude: Option<String>§current_provider_codex: Option<String>§current_provider_gemini: Option<String>§current_provider_opencode: Option<String>§current_provider_openclaw: Option<String>§current_provider_hermes: Option<String>§visible_apps: VisibleApps§language: Option<String>§launch_on_startup: bool是否开机自启
skill_sync_method: SyncMethodSkills 同步方式(auto|symlink|copy)
security: Option<SecuritySettings>§webdav_sync: Option<WebDavSyncSettings>§backup_retain_count: Option<u32>§custom_endpoints_claude: HashMap<String, CustomEndpoint>Claude 自定义端点列表
custom_endpoints_codex: HashMap<String, CustomEndpoint>Codex 自定义端点列表
Implementations§
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 (const: unstable) · 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§impl<'de> Deserialize<'de> for AppSettings
impl<'de> Deserialize<'de> for AppSettings
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
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