pub struct TrdAccReq {
pub market: String,
pub acc_id: Option<u64>,
pub card_num: Option<String>,
pub env: String,
pub api_key: Option<String>,
pub currency: Option<String>,
}Fields§
§market: String§acc_id: Option<u64>§card_num: Option<String>§env: String§api_key: Option<String>v1.4.103 (codex 51 F1 — B5): per-call API key override.
与 PlaceOrderReq.api_key 同模式 (优先级: tool args > HTTP Bearer > startup key). 让 narrow-scope HTTP 客户端能在 read tool 上限定本次 call 的 caller key. 留空 / 不传 → 走 HTTP Bearer 或 startup key.
currency: Option<String>货币种类 (HKD|USD|CNH|JPY|SGD|AUD|CAD|MYR|USDT).
留空时 daemon 按账户所属券商派生默认资金视图币种;显式传入时会 校验该账户是否支持对应币种。普通单市场账户可能由 backend 忽略 显式币种, 返回其账户基准币种。
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TrdAccReq
impl<'de> Deserialize<'de> for TrdAccReq
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 TrdAccReq
impl JsonSchema for TrdAccReq
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 TrdAccReq
impl RefUnwindSafe for TrdAccReq
impl Send for TrdAccReq
impl Sync for TrdAccReq
impl Unpin for TrdAccReq
impl UnsafeUnpin for TrdAccReq
impl UnwindSafe for TrdAccReq
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