Enum mostro_client::cli::Commands
source · pub enum Commands {
Show 15 variants
ListOrders {
status: Option<String>,
currency: Option<String>,
kind: Option<String>,
},
Neworder {
kind: String,
amount: i64,
fiat_code: String,
fiat_amount: i64,
payment_method: String,
premium: i64,
invoice: Option<String>,
},
TakeSell {
order_id: Uuid,
invoice: Option<String>,
},
TakeBuy {
order_id: Uuid,
},
AddInvoice {
order_id: Uuid,
invoice: String,
},
GetDm {
since: i64,
},
FiatSent {
order_id: Uuid,
},
Release {
order_id: Uuid,
},
Cancel {
order_id: Uuid,
},
Rate {
order_id: Uuid,
rating: u8,
},
Dispute {
order_id: Uuid,
},
AdmCancel {
order_id: Uuid,
},
AdmSettle {
order_id: Uuid,
},
AdmAddSolver {
npubkey: String,
},
AdmTakeDispute {
dispute_id: Uuid,
},
}Variants§
ListOrders
Fields
Requests open orders from Mostro pubkey
Neworder
Fields
Premium on price
Create a new buy/sell order on Mostro
TakeSell
Take a sell order from a Mostro pubkey
TakeBuy
Take a buy order from a Mostro pubkey
AddInvoice
Take a buy order from a Mostro pubkey
GetDm
Get the list of Mostro direct messages since the last hour, used to check order state
FiatSent
Send fiat sent message to confirm payment to other user
Release
Settle the hold invoice and pay to buyer.
Cancel
Cancel a pending order
Rate
Rate counterpart after a successful trade
Dispute
Start a dispute
AdmCancel
Cancel an order (only admin)
AdmSettle
Settle a seller’s hold invoice (only admin)
AdmAddSolver
Add a new dispute’s solver (only admin)
AdmTakeDispute
Admin or solver take a Pending dispute (only admin)
Trait Implementations§
source§impl FromArgMatches for Commands
impl FromArgMatches for Commands
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 Commands
impl Subcommand for Commands
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
source§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 RefUnwindSafe for Commands
impl Send for Commands
impl Sync for Commands
impl Unpin for Commands
impl UnwindSafe for Commands
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