pub struct ModifyOrderArgs {
pub(crate) market: String,
pub(crate) acc_id: Option<u64>,
pub(crate) card_num: Option<String>,
pub(crate) env: String,
pub(crate) order_id: String,
pub(crate) op: String,
pub(crate) qty: Option<f64>,
pub(crate) price: Option<f64>,
pub(crate) confirm: bool,
pub(crate) idempotency_key: Option<String>,
}Fields§
§market: String§acc_id: Option<u64>§card_num: Option<String>App 显示卡号:4 位末尾或 16 位完整卡号
env: String§order_id: String§op: String操作类型: NORMAL(改数量价格)| CANCEL | DISABLE | ENABLE | DELETE
qty: Option<f64>新数量(op=NORMAL 必填)
price: Option<f64>新价格(op=NORMAL 必填)
confirm: bool§idempotency_key: Option<String>v1.4.39:可选幂等键。同 place-order --idempotency-key
Trait Implementations§
Source§impl Args for ModifyOrderArgs
impl Args for ModifyOrderArgs
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 ModifyOrderArgs
impl FromArgMatches for ModifyOrderArgs
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 ModifyOrderArgs
impl RefUnwindSafe for ModifyOrderArgs
impl Send for ModifyOrderArgs
impl Sync for ModifyOrderArgs
impl Unpin for ModifyOrderArgs
impl UnsafeUnpin for ModifyOrderArgs
impl UnwindSafe for ModifyOrderArgs
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