pub enum Commands {
Show 25 variants
ListOrders {
status: Option<String>,
currency: Option<String>,
kind: Option<String>,
},
NewOrder {
kind: String,
amount: i64,
fiat_code: String,
fiat_amount: (i64, Option<i64>),
payment_method: String,
premium: i64,
invoice: Option<String>,
expiration_days: i64,
},
TakeSell {
order_id: Uuid,
invoice: Option<String>,
amount: Option<u32>,
},
TakeBuy {
order_id: Uuid,
amount: Option<u32>,
},
AddInvoice {
order_id: Uuid,
invoice: String,
},
GetDm {
since: i64,
from_user: bool,
},
GetDmUser {
since: i64,
},
GetAdminDm {
since: i64,
from_user: bool,
},
SendDm {
pubkey: String,
order_id: Uuid,
message: String,
},
DmToUser {
pubkey: String,
order_id: Uuid,
message: String,
},
FiatSent {
order_id: Uuid,
},
Release {
order_id: Uuid,
},
Cancel {
order_id: Uuid,
},
Rate {
order_id: Uuid,
rating: u8,
},
Restore {},
Dispute {
order_id: Uuid,
},
AdmCancel {
order_id: Uuid,
},
AdmSettle {
order_id: Uuid,
},
AdmListDisputes {},
AdmAddSolver {
npubkey: String,
},
AdmTakeDispute {
dispute_id: Uuid,
},
AdmSendDm {
pubkey: String,
message: String,
},
ConversationKey {
pubkey: String,
},
GetLastTradeIndex {},
OrdersInfo {
order_ids: Vec<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
Fields
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
Fields
GetDmUser
Get direct messages sent to any trade keys
GetAdminDm
Get the latest direct messages for admin
Fields
SendDm
Send direct message to a user
Fields
DmToUser
Send gift wrapped direct message to a user
Fields
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
Restore
Restore session to recover all pending orders and disputes
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)
AdmSendDm
Send gift wrapped direct message to a user (only admin)
ConversationKey
Get the conversation key for direct messaging with a user
GetLastTradeIndex
Get last trade index of user
OrdersInfo
Request detailed information for specific orders
Implementations§
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>
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>
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
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
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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