pub enum LoginRegion {
Gz,
Sh,
Hk,
}Expand description
v1.4.40 #12 fix (eli exhaustive report): --login-region 封闭 enum。
v1.4.39 及以前接受任意字符串(gz / us / moomoo / wuhan / 日期串都被
静默吃掉,无法反馈给用户),且对 moomoo 账户此 flag 永远不生效(daemon 内
commconfig 按 user_attribution 查 guaranteed_ip 覆盖)。
v1.4.40 起:
- clap
ValueEnum只接受gz/sh/hk三个合法值,非法值 fail-fast - 对
--platform moomoo启动时若用户传了--login-region,WARN log 显式说明 “此 flag 仅对 futunn 生效,moomoo 账户按 user_attribution 自动路由”
三个值对应 futunn 平台的广州 / 上海 / 香港数据中心标识(C++ OpenD 历史约定)。
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for LoginRegion
impl Clone for LoginRegion
Source§fn clone(&self) -> LoginRegion
fn clone(&self) -> LoginRegion
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 LoginRegion
impl Debug for LoginRegion
Source§impl<'de> Deserialize<'de> for LoginRegion
impl<'de> Deserialize<'de> for LoginRegion
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
Source§impl PartialEq for LoginRegion
impl PartialEq for LoginRegion
Source§impl ValueEnum for LoginRegion
impl ValueEnum for LoginRegion
impl Copy for LoginRegion
impl Eq for LoginRegion
impl StructuralPartialEq for LoginRegion
Auto Trait Implementations§
impl Freeze for LoginRegion
impl RefUnwindSafe for LoginRegion
impl Send for LoginRegion
impl Sync for LoginRegion
impl Unpin for LoginRegion
impl UnsafeUnpin for LoginRegion
impl UnwindSafe for LoginRegion
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§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>
§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].