pub enum LSPS1PaymentState {
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 LSPS1PaymentState
impl Clone for LSPS1PaymentState
Source§fn clone(&self) -> LSPS1PaymentState
fn clone(&self) -> LSPS1PaymentState
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 LSPS1PaymentState
impl Debug for LSPS1PaymentState
Source§impl<'de> Deserialize<'de> for LSPS1PaymentState
impl<'de> Deserialize<'de> for LSPS1PaymentState
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 LSPS1PaymentState
impl PartialEq for LSPS1PaymentState
Source§impl Serialize for LSPS1PaymentState
impl Serialize for LSPS1PaymentState
impl Eq for LSPS1PaymentState
impl StructuralPartialEq for LSPS1PaymentState
Auto Trait Implementations§
impl Freeze for LSPS1PaymentState
impl RefUnwindSafe for LSPS1PaymentState
impl Send for LSPS1PaymentState
impl Sync for LSPS1PaymentState
impl Unpin for LSPS1PaymentState
impl UnwindSafe for LSPS1PaymentState
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