pub struct UnlockTradeReq {
pub unlock: bool,
pub otp: Option<String>,
pub security_firm: Option<i32>,
pub acc_ids: Option<Vec<u64>>,
}Fields§
§unlock: booltrue = 解锁(默认),false = 重新锁住交易 cipher(防御用)
otp: Option<String>v1.4.31: OTP / 令牌动态密码。仅在首次调用返回 need_otp=true 或
err_code=-8 时需要传;普通账号(无 2FA)留空即可。
security_firm: Option<i32>v1.4.33: 只解锁该券商下的账户(对齐 C++ OpenD per-broker unlock 语义)。 SecurityFirm enum (i32): 1=FutuSecurities (HK), 2=FutuInc (US/MooMoo), 3=FutuSG, 4=FutuAU, 5=FutuCA, 6=FutuMY, 7=FutuJP. 留空 = 解锁所有 broker(v1.4.31 行为,向后兼容)。
acc_ids: Option<Vec<u64>>v1.4.34: 只解锁指定 acc_id 列表(正整数;空 / omitted = 不 per-account filter)。 和 security_firm 同时传时取交集(账户必须同时满足)。解决同 broker 内 影子账户拖垮主账户的场景——LLM 显式传主账户 acc_id 可以避免影子 账户进 unlock 请求。
Trait Implementations§
Source§impl Debug for UnlockTradeReq
impl Debug for UnlockTradeReq
Source§impl<'de> Deserialize<'de> for UnlockTradeReq
impl<'de> Deserialize<'de> for UnlockTradeReq
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 JsonSchema for UnlockTradeReq
impl JsonSchema for UnlockTradeReq
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for UnlockTradeReq
impl RefUnwindSafe for UnlockTradeReq
impl Send for UnlockTradeReq
impl Sync for UnlockTradeReq
impl Unpin for UnlockTradeReq
impl UnsafeUnpin for UnlockTradeReq
impl UnwindSafe for UnlockTradeReq
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<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