pub enum CantDoReason {
Show 25 variants
InvalidSignature,
InvalidTradeIndex,
InvalidAmount,
InvalidInvoice,
InvalidPaymentRequest,
InvalidPeer,
InvalidRating,
InvalidTextMessage,
InvalidOrderKind,
InvalidOrderStatus,
InvalidPubkey,
InvalidParameters,
OrderAlreadyCanceled,
CantCreateUser,
IsNotYourOrder,
NotAllowedByStatus,
OutOfRangeFiatAmount,
OutOfRangeSatsAmount,
IsNotYourDispute,
DisputeTakenByAdmin,
DisputeCreationError,
NotFound,
InvalidDisputeStatus,
InvalidAction,
PendingOrderExists,
}
Expand description
Represents specific reasons why a requested action cannot be performed
Variants§
InvalidSignature
The provided signature is invalid or missing
InvalidTradeIndex
The specified trade index does not exist or is invalid
InvalidAmount
The provided amount is invalid or out of acceptable range
InvalidInvoice
The provided invoice is malformed or expired
InvalidPaymentRequest
The payment request is invalid or cannot be processed
InvalidPeer
The specified peer is invalid or not found
InvalidRating
The rating value is invalid or out of range
InvalidTextMessage
The text message is invalid or contains prohibited content
InvalidOrderKind
The order kind is invalid
InvalidOrderStatus
The order status is invalid
InvalidPubkey
Invalid pubkey
InvalidParameters
Invalid parameters
OrderAlreadyCanceled
The order is already canceled
CantCreateUser
Can’t create user
IsNotYourOrder
For users trying to do actions on orders that are not theirs
NotAllowedByStatus
For users trying to do actions on orders not allowed by status
OutOfRangeFiatAmount
Fiat amount is out of range
OutOfRangeSatsAmount
Sats amount is out of range
IsNotYourDispute
For users trying to do actions on dispute that are not theirs
DisputeTakenByAdmin
For solvers when admin has taken over their dispute
DisputeCreationError
For users trying to create a dispute on an order that is not in dispute
NotFound
Generic not found
InvalidDisputeStatus
Invalid dispute status
InvalidAction
Invalid action
PendingOrderExists
Pending order exists
Trait Implementations§
Source§impl Clone for CantDoReason
impl Clone for CantDoReason
Source§fn clone(&self) -> CantDoReason
fn clone(&self) -> CantDoReason
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for CantDoReason
impl Debug for CantDoReason
Source§impl<'de> Deserialize<'de> for CantDoReason
impl<'de> Deserialize<'de> for CantDoReason
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for CantDoReason
impl PartialEq for CantDoReason
Source§impl Serialize for CantDoReason
impl Serialize for CantDoReason
impl Eq for CantDoReason
impl StructuralPartialEq for CantDoReason
Auto Trait Implementations§
impl Freeze for CantDoReason
impl RefUnwindSafe for CantDoReason
impl Send for CantDoReason
impl Sync for CantDoReason
impl Unpin for CantDoReason
impl UnwindSafe for CantDoReason
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