Skip to main content

Module config

Module config 

Source
Expand description

v1.4.110 P1-2: XmlConfig + RuntimeConfig + load / merge 抽自 main.rs lines 498-842.

Structs§

RuntimeConfig
合并后的运行时配置
XmlConfig

Functions§

app_lang_from_runtime_lang 🔒
clean_optional_string 🔒
env_optional_path 🔒
env_optional_string 🔒
env_optional_u64 🔒
load_toml_config
从 TOML 配置文件读取配置 (v1.4.2+;字段与 XmlConfig 一致)
load_xml_config
从 XML 配置文件读取配置 (兼容 C++ <futu_opend> 格式)
merge_config
合并 CLI args + 配置文件 (CLI 优先)
merge_runtime_lang 🔒
normalize_runtime_lang 🔒
read_explicit_credential_file
codex 0547 F1+F2 (P2) — explicit user-supplied credential / secret 文件 读取 helper. 用户显式(CLI flag 或 TOML/XML config) 传入路径但读取失败 时 fail-closed 返 Err. 让 daemon abort 而非 silent fallback.
redact_debug_option 🔒
runtime_lang_from_locale 🔒
system_default_lang 🔒