pub struct AccCashFlowArgs {
pub(crate) acc_id: Option<u64>,
pub(crate) acc_id_arg: Option<u64>,
pub(crate) card_num: Option<String>,
pub(crate) acc_id_file: Option<PathBuf>,
pub(crate) date: Option<String>,
pub(crate) date_range: Option<String>,
pub(crate) env: String,
pub(crate) market: String,
pub(crate) direction: Option<i32>,
}Fields§
§acc_id: Option<u64>账户 id(位置参数或 –acc-id 二选一)
acc_id_arg: Option<u64>REST/MCP 风格命名参数别名
card_num: Option<String>App 显示卡号:4 位末尾或 16 位完整卡号
acc_id_file: Option<PathBuf>Unix owner-only (exact mode 0600) account-id file; keeps the raw selector out of argv.
date: Option<String>清算日期 YYYY-MM-DD(单日;和 --date-range 二选一)
date_range: Option<String>v1.4.32+ 日期范围 YYYY-MM-DD..YYYY-MM-DD(跨度上限 31 天,跳周末)
env: String环境:simulate / real(默认 real)
market: String市场:HK / US / CN / HKCC(默认 HK)
direction: Option<i32>方向过滤:1=入金 / 2=出金(默认全部)
Trait Implementations§
Source§impl Args for AccCashFlowArgs
impl Args for AccCashFlowArgs
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 AccCashFlowArgs
impl FromArgMatches for AccCashFlowArgs
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 AccCashFlowArgs
impl RefUnwindSafe for AccCashFlowArgs
impl Send for AccCashFlowArgs
impl Sync for AccCashFlowArgs
impl Unpin for AccCashFlowArgs
impl UnsafeUnpin for AccCashFlowArgs
impl UnwindSafe for AccCashFlowArgs
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§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