Enum nostr_sdk::nips::nip47::ResponseResult
source · pub enum ResponseResult {
PayInvoice(PayInvoiceResponseResult),
MakeInvoice(MakeInvoiceResponseResult),
LookupInvoice(LookupInvoiceResponseResult),
GetBalance(GetBalanceResponseResult),
}
Expand description
NIP47 Response Result
Variants§
PayInvoice(PayInvoiceResponseResult)
Pay Invoice
MakeInvoice(MakeInvoiceResponseResult)
Make Invoice
LookupInvoice(LookupInvoiceResponseResult)
Lookup Invoice
GetBalance(GetBalanceResponseResult)
Get Balance
Trait Implementations§
source§impl Clone for ResponseResult
impl Clone for ResponseResult
source§fn clone(&self) -> ResponseResult
fn clone(&self) -> ResponseResult
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 ResponseResult
impl Debug for ResponseResult
source§impl PartialEq<ResponseResult> for ResponseResult
impl PartialEq<ResponseResult> for ResponseResult
source§fn eq(&self, other: &ResponseResult) -> bool
fn eq(&self, other: &ResponseResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ResponseResult
impl Serialize for ResponseResult
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for ResponseResult
impl StructuralEq for ResponseResult
impl StructuralPartialEq for ResponseResult
Auto Trait Implementations§
impl RefUnwindSafe for ResponseResult
impl Send for ResponseResult
impl Sync for ResponseResult
impl Unpin for ResponseResult
impl UnwindSafe for ResponseResult
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.