[][src]Enum cdpay::PaymentError

pub enum PaymentError {
    IncorrectAmount,
    NotReceived,
    Communication(APIError),
    Other {
        status_id: u64,
        status_message: Option<String>,
    },
}

The ways payment might fail

Variants

IncorrectAmount

The amount of cryptocurrency sent to the address wasn't correct.

NotReceived

The payment wasn't received.

Communication(APIError)

Communication failed

Other

Other error returned by te server.

Fields of Other

status_id: u64

Status ID returned by the server.

status_message: Option<String>

Status message returned by the server.

Trait Implementations

impl From<APIError> for PaymentError[src]

impl Debug for PaymentError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Erased for T