pub struct ComboOrderArgs {
pub(crate) c2s_json: String,
pub(crate) confirm: bool,
pub(crate) idempotency_key: Option<String>,
}Fields§
§c2s_json: String官方 Trd_PlaceComboOrder.C2S JSON;packetID 可省略,CLI 会按连接补齐。
字段名按 generated proto serde 的 snake_case 写法,例如
header、combo_legs、order_type。CLI 不替用户改写价格、腿方向、
time_in_force 等交易语义字段。
confirm: boolreal 交易环境必须显式确认。环境从 C2S.header.trdEnv 读取。
idempotency_key: Option<String>可选幂等键;设置后 CLI 用稳定 PacketID 派生同一请求。
Trait Implementations§
Source§impl Args for ComboOrderArgs
impl Args for ComboOrderArgs
Source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
Report the [
ArgGroup::id][crate::ArgGroup::id] for this set of argumentsSource§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to [
Command] so it can instantiate self via
[FromArgMatches::update_from_arg_matches_mut] Read moreSource§impl FromArgMatches for ComboOrderArgs
impl FromArgMatches for ComboOrderArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for ComboOrderArgs
impl RefUnwindSafe for ComboOrderArgs
impl Send for ComboOrderArgs
impl Sync for ComboOrderArgs
impl Unpin for ComboOrderArgs
impl UnsafeUnpin for ComboOrderArgs
impl UnwindSafe for ComboOrderArgs
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