Enum nip_70::PayInvoiceResponse
source · pub enum PayInvoiceResponse {
Success(String),
ErrorPaymentFailed(String),
ErrorMalformedInvoice,
}
Expand description
A response to a pay invoice request.
Variants§
Success(String)
The invoice was paid successfully. Contains the preimage of the payment.
ErrorPaymentFailed(String)
The invoice was not paid successfully. Contains the reason for the failure.
ErrorMalformedInvoice
The invoice was malformed and could not be paid.
Trait Implementations§
source§impl Clone for PayInvoiceResponse
impl Clone for PayInvoiceResponse
source§fn clone(&self) -> PayInvoiceResponse
fn clone(&self) -> PayInvoiceResponse
Returns a copy 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 PayInvoiceResponse
impl Debug for PayInvoiceResponse
source§impl<'de> Deserialize<'de> for PayInvoiceResponse
impl<'de> Deserialize<'de> for PayInvoiceResponse
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 PayInvoiceResponse
impl PartialEq for PayInvoiceResponse
source§fn eq(&self, other: &PayInvoiceResponse) -> bool
fn eq(&self, other: &PayInvoiceResponse) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for PayInvoiceResponse
impl Serialize for PayInvoiceResponse
impl StructuralPartialEq for PayInvoiceResponse
Auto Trait Implementations§
impl RefUnwindSafe for PayInvoiceResponse
impl Send for PayInvoiceResponse
impl Sync for PayInvoiceResponse
impl Unpin for PayInvoiceResponse
impl UnwindSafe for PayInvoiceResponse
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