pub struct KlineArgs {
pub(crate) symbol_positional: Option<String>,
pub(crate) symbol_arg: Option<String>,
pub(crate) type: String,
pub(crate) count: Option<i32>,
pub(crate) begin: Option<String>,
pub(crate) end: Option<String>,
}Fields§
§symbol_positional: Option<String>股票代码,MARKET.CODE 格式(positional)或 --symbol/--code 指定
symbol_arg: Option<String>v1.4.83 §10 alias: 显式 --symbol <X> / --code <X> / --stock <X>
type: StringK 线类型: day | week | month | 1min | 5min | 15min | 30min | 60min | quarter | year
v1.4.83 §10 新增 aliases: --ktype / --kltype / --kl-type
count: Option<i32>返回根数(默认 100)
v1.4.83 §10 新增 aliases: --num / --max-count / --req-count
begin: Option<String>开始日期 yyyy-MM-dd(默认 end - 回溯)
v1.4.83 §10 alias: --begin-time / --from
end: Option<String>结束日期 yyyy-MM-dd(默认今日)
v1.4.83 §10 alias: --end-time / --to
Trait Implementations§
Source§impl Args for KlineArgs
impl Args for KlineArgs
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 KlineArgs
impl FromArgMatches for KlineArgs
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 KlineArgs
impl RefUnwindSafe for KlineArgs
impl Send for KlineArgs
impl Sync for KlineArgs
impl Unpin for KlineArgs
impl UnsafeUnpin for KlineArgs
impl UnwindSafe for KlineArgs
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