pub enum PaymentState {
ExpectPayment,
Paid,
Refunded,
}
Expand description
The state of a payment.
Note: Previously, the spec also knew a CANCELLED
state for BOLT11 payments, which has since
been deprecated and REFUNDED
should be used instead.
Variants§
ExpectPayment
A payment is expected.
Paid
A sufficient payment has been received.
Refunded
The payment has been refunded.
Trait Implementations§
Source§impl Clone for PaymentState
impl Clone for PaymentState
Source§fn clone(&self) -> PaymentState
fn clone(&self) -> PaymentState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PaymentState
impl Debug for PaymentState
Source§impl<'de> Deserialize<'de> for PaymentState
impl<'de> Deserialize<'de> for PaymentState
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PaymentState
impl PartialEq for PaymentState
Source§impl Serialize for PaymentState
impl Serialize for PaymentState
impl Eq for PaymentState
impl StructuralPartialEq for PaymentState
Auto Trait Implementations§
impl Freeze for PaymentState
impl RefUnwindSafe for PaymentState
impl Send for PaymentState
impl Sync for PaymentState
impl Unpin for PaymentState
impl UnwindSafe for PaymentState
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