pub struct GenKeyCommand {Show 16 fields
pub id: String,
pub scopes: String,
pub keys_file: Option<PathBuf>,
pub expires: Option<String>,
pub note: Option<String>,
pub allowed_markets: Option<String>,
pub allowed_symbols: Option<String>,
pub max_order_value: Option<f64>,
pub max_daily_value: Option<f64>,
pub hours_window: Option<String>,
pub max_orders_per_minute: Option<u32>,
pub allowed_trd_sides: Option<String>,
pub allowed_acc_ids: Option<String>,
pub allowed_card_nums: Option<String>,
pub bind_this_machine: bool,
pub bind_machines: Option<String>,
}Fields§
§id: String§scopes: String§keys_file: Option<PathBuf>§expires: Option<String>§note: Option<String>§allowed_markets: Option<String>§allowed_symbols: Option<String>§max_order_value: Option<f64>§max_daily_value: Option<f64>§hours_window: Option<String>§max_orders_per_minute: Option<u32>§allowed_trd_sides: Option<String>§allowed_acc_ids: Option<String>v1.4.35:per-key 允许的 acc_id 列表,逗号分隔(如 10001,10002)。
None / 空 → 不限(向后兼容)。主要用于多 agent 隔离。
allowed_card_nums: Option<String>v1.4.103 (B10):per-key 允许的 card_num 列表,逗号分隔.
接受 4 位 suffix (e.g. <card-suffix>) 或 16 位完整 (e.g. <full-card-num>).
示例为 synthetic placeholder, 不是真实账户信息.
daemon 启动后通过 GetAccList resolve → 合并进 allowed_acc_ids.
bind_this_machine: bool§bind_machines: Option<String>Auto Trait Implementations§
impl Freeze for GenKeyCommand
impl RefUnwindSafe for GenKeyCommand
impl Send for GenKeyCommand
impl Sync for GenKeyCommand
impl Unpin for GenKeyCommand
impl UnsafeUnpin for GenKeyCommand
impl UnwindSafe for GenKeyCommand
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