diff --git a/book/src/SUMMARY.md b/book/src/SUMMARY.md index f026b920..cf69e768 100644 --- a/book/src/SUMMARY.md +++ b/book/src/SUMMARY.md @@ -11,7 +11,7 @@ - [Rate user](./user_rating.md) - [Cancel](./cancel.md) - [Dispute](./dispute.md) -- [Actions](https://docs.rs/mostro-core/latest/mostro_core/enum.Action.html) +- [Actions](./actions.md) - [Order](./new_order.md) - [TakeSell](./take_sell.md) - [AddInvoice](./take_sell.md) diff --git a/book/src/actions.md b/book/src/actions.md new file mode 100644 index 00000000..dc644689 --- /dev/null +++ b/book/src/actions.md @@ -0,0 +1,40 @@ +# Actions + +## mostro_core::Action + +Action is used to identify each message between Mostro and users + +```rust + pub enum Action { + Order, + TakeSell, + TakeBuy, + PayInvoice, + FiatSent, + Release, + Cancel, + CooperativeCancelInitiatedByYou, + CooperativeCancelInitiatedByPeer, + DisputeInitiatedByYou, + DisputeInitiatedByPeer, + CooperativeCancelAccepted, + BuyerInvoiceAccepted, + SaleCompleted, + PurchaseCompleted, + HoldInvoicePaymentAccepted, + HoldInvoicePaymentSettled, + HoldInvoicePaymentCanceled, + WaitingSellerToPay, + WaitingBuyerInvoice, + AddInvoice, + BuyerTookOrder, + RateUser, + CantDo, + Received, + Dispute, + AdminCancel, + AdminSettle, + AdminAddSolver, + AdminTakeDispute, +} +``` diff --git a/book/src/https:/docs.rs/mostro-core/latest/mostro_core/enum.Action.html b/book/src/https:/docs.rs/mostro-core/latest/mostro_core/enum.Action.html deleted file mode 100644 index 1060a658..00000000 --- a/book/src/https:/docs.rs/mostro-core/latest/mostro_core/enum.Action.html +++ /dev/null @@ -1 +0,0 @@ -# Actions