pub struct RuntimeConfig {Show 40 fields
pub ip: String,
pub port: u16,
pub login_account: Option<String>,
pub login_pwd: Option<String>,
pub login_pwd_md5: Option<String>,
pub login_pwd_file: Option<String>,
pub login_region: String,
pub login_region_explicit: bool,
pub platform: Platform,
pub auth_server: String,
pub device_id: Option<String>,
pub reset_device: bool,
pub setup_only: bool,
pub verify_code: Option<String>,
pub log_level: String,
pub websocket_port: Option<u16>,
pub telnet_port: Option<u16>,
pub telnet_ip: String,
pub rest_port: Option<u16>,
pub rest_tls_cert: Option<PathBuf>,
pub rest_tls_key: Option<PathBuf>,
pub grpc_port: Option<u16>,
pub rsa_private_key: Option<String>,
pub json_log: bool,
pub lang: String,
pub(crate) runtime_language_source: RuntimeLanguageSource,
pub rest_keys_file: Option<PathBuf>,
pub grpc_keys_file: Option<PathBuf>,
pub ws_keys_file: Option<PathBuf>,
pub audit_log: Option<PathBuf>,
pub allow_tcp_unauthenticated: bool,
pub tz: Option<String>,
pub language_pack_auto_update: bool,
pub language_pack_endpoint: Option<String>,
pub language_pack_cache_dir: Option<PathBuf>,
pub language_pack_update_timeout_ms: u64,
pub client_sig_proactive_refresh: bool,
pub client_sig_reactive_refresh: bool,
pub history_kline_cloud_sync: bool,
pub update_check_url: String,
}Expand description
合并后的运行时配置
Fields§
§ip: String§port: u16§login_account: Option<String>§login_pwd: Option<String>§login_pwd_md5: Option<String>§login_pwd_file: Option<String>§login_region: String§login_region_explicit: boolv1.4.42 (external reviewer v1.4.40 报告 P3.5 澄清): 标记用户是否显式传了 --login-region
(或在 config 文件里写了)。平台是 moomoo + 用户显式传 region → main() 入口 WARN
明示此 flag 对 moomoo 是 noop。避免用户误以为 “layer 2/3 platform IP 按 region 切”。
platform: Platform§auth_server: String§device_id: Option<String>§reset_device: bool§setup_only: bool§verify_code: Option<String>v1.4.57 UX-04: 直接传入 SMS 验证码跳过 stdin 交互(Telegram 中继等场景)
log_level: String§websocket_port: Option<u16>§telnet_port: Option<u16>§telnet_ip: String§rest_port: Option<u16>§rest_tls_cert: Option<PathBuf>§rest_tls_key: Option<PathBuf>§grpc_port: Option<u16>§rsa_private_key: Option<String>§json_log: bool§lang: String§runtime_language_source: RuntimeLanguageSource§rest_keys_file: Option<PathBuf>§grpc_keys_file: Option<PathBuf>§ws_keys_file: Option<PathBuf>§audit_log: Option<PathBuf>§allow_tcp_unauthenticated: bool§tz: Option<String>§language_pack_auto_update: bool§language_pack_endpoint: Option<String>§language_pack_cache_dir: Option<PathBuf>§language_pack_update_timeout_ms: u64§client_sig_proactive_refresh: bool§client_sig_reactive_refresh: bool§history_kline_cloud_sync: bool§update_check_url: StringRust product update manifest used by GetUserInfo(Update).
Auto Trait Implementations§
impl Freeze for RuntimeConfig
impl RefUnwindSafe for RuntimeConfig
impl Send for RuntimeConfig
impl Sync for RuntimeConfig
impl Unpin for RuntimeConfig
impl UnsafeUnpin for RuntimeConfig
impl UnwindSafe for RuntimeConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].