pub enum PaperCommand {
Show 13 variants
Init {
idr: Option<f64>,
btc: Option<f64>,
},
Reset,
Topup {
currency: String,
amount: f64,
},
Balance,
Buy {
pair: String,
idr: Option<f64>,
amount: Option<f64>,
price: Option<f64>,
},
Sell {
pair: String,
amount: f64,
price: Option<f64>,
},
Orders {
pair: Option<String>,
sort_by: Option<String>,
sort_order: Option<String>,
},
Cancel {
order_id: u64,
},
CancelAll,
Fill {
order_id: Option<u64>,
price: Option<f64>,
all: bool,
},
History {
sort_by: Option<String>,
sort_order: Option<String>,
},
CheckFills {
prices: Option<String>,
fetch: bool,
},
Status,
}Variants§
Trait Implementations§
Source§impl Debug for PaperCommand
impl Debug for PaperCommand
Source§impl FromArgMatches for PaperCommand
impl FromArgMatches for PaperCommand
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<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Subcommand for PaperCommand
impl Subcommand for PaperCommand
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for PaperCommand
impl RefUnwindSafe for PaperCommand
impl Send for PaperCommand
impl Sync for PaperCommand
impl Unpin for PaperCommand
impl UnsafeUnpin for PaperCommand
impl UnwindSafe for PaperCommand
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