pub struct XmlConfig {Show 31 fields
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: Option<LoginRegion>,
pub platform: Option<Platform>,
pub ip: Option<String>,
pub port: Option<u16>,
pub websocket_port: Option<u16>,
pub telnet_port: Option<u16>,
pub telnet_ip: Option<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 lang: Option<String>,
pub log_level: Option<LogLevel>,
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: Option<bool>,
pub tz: Option<String>,
pub language_pack_auto_update: Option<bool>,
pub language_pack_endpoint: Option<String>,
pub language_pack_cache_dir: Option<PathBuf>,
pub language_pack_update_timeout_ms: Option<u64>,
pub client_sig_proactive_refresh: Option<bool>,
pub client_sig_reactive_refresh: Option<bool>,
pub history_kline_cloud_sync: Option<bool>,
}Fields§
§login_account: Option<String>§login_pwd: Option<String>§login_pwd_md5: Option<String>§login_pwd_file: Option<String>§login_region: Option<LoginRegion>§platform: Option<Platform>账号平台(v1.4.14+)—— “futunn” 或 “moomoo”
ip: Option<String>§port: Option<u16>§websocket_port: Option<u16>§telnet_port: Option<u16>§telnet_ip: Option<String>§rest_port: Option<u16>§rest_tls_cert: Option<PathBuf>§rest_tls_key: Option<PathBuf>§grpc_port: Option<u16>§rsa_private_key: Option<String>§lang: Option<String>§log_level: Option<LogLevel>§rest_keys_file: Option<PathBuf>§grpc_keys_file: Option<PathBuf>§ws_keys_file: Option<PathBuf>§audit_log: Option<PathBuf>§allow_tcp_unauthenticated: Option<bool>§tz: Option<String>IANA timezone name (e.g. “Asia/Hong_Kong”). 与 –tz CLI flag 同源.
language_pack_auto_update: Option<bool>Language-pack background update. Defaults true in RuntimeConfig.
language_pack_endpoint: Option<String>Language-pack exact manifest URL, or a directory URL ending in /.
Directory URLs append manifest.json. Empty means no network.
language_pack_cache_dir: Option<PathBuf>Language-pack cache root.
language_pack_update_timeout_ms: Option<u64>Language-pack update HTTP timeout in milliseconds.
client_sig_proactive_refresh: Option<bool>Long-runner opt-in: proactive client_sig refresh 1h before expiry.
client_sig_reactive_refresh: Option<bool>Long-runner opt-in: reactive client_sig refresh after repeated tcp_login failures.
history_kline_cloud_sync: Option<bool>C++ RequestedKline UserCloudConfig synchronization. Defaults true.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for XmlConfig
impl<'de> Deserialize<'de> for XmlConfig
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 XmlConfig
impl RefUnwindSafe for XmlConfig
impl Send for XmlConfig
impl Sync for XmlConfig
impl Unpin for XmlConfig
impl UnsafeUnpin for XmlConfig
impl UnwindSafe for XmlConfig
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§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].§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.