Enum mostro_client::cli::Commands
source · pub enum Commands {
Show 16 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>,
expiration_days: i64,
},
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,
},
AdmListDisputes {},
AdmAddSolver {
npubkey: String,
},
AdmTakeDispute {
dispute_id: Uuid,
},
}Variants§
ListOrders
Requests open orders from Mostro pubkey
Fields
NewOrder
Create a new buy/sell order on Mostro
Fields
Premium on price
TakeSell
Take a sell order from a Mostro pubkey
TakeBuy
Take a buy order from a Mostro pubkey
AddInvoice
Buyer add a new invoice to receive the payment
GetDm
Get the latest direct messages from Mostro
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)
AdmListDisputes
Requests open disputes from Mostro pubkey
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 Freeze for Commands
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§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