Enum nostr_sdk::nips::nip47::RequestParams
source · pub enum RequestParams {
PayInvoice(PayInvoiceRequestParams),
MakeInvoice(MakeInvoiceRequestParams),
LookupInvoice(LookupInvoiceRequestParams),
GetBalance,
}
Expand description
Nostr Wallet Connect Request Params
Variants§
PayInvoice(PayInvoiceRequestParams)
Pay Invoice
MakeInvoice(MakeInvoiceRequestParams)
Make Invoice
LookupInvoice(LookupInvoiceRequestParams)
Lookup Invoice
GetBalance
Get Balance
Trait Implementations§
source§impl Clone for RequestParams
impl Clone for RequestParams
source§fn clone(&self) -> RequestParams
fn clone(&self) -> RequestParams
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 RequestParams
impl Debug for RequestParams
source§impl PartialEq<RequestParams> for RequestParams
impl PartialEq<RequestParams> for RequestParams
source§fn eq(&self, other: &RequestParams) -> bool
fn eq(&self, other: &RequestParams) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for RequestParams
impl Serialize for RequestParams
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 RequestParams
impl StructuralEq for RequestParams
impl StructuralPartialEq for RequestParams
Auto Trait Implementations§
impl RefUnwindSafe for RequestParams
impl Send for RequestParams
impl Sync for RequestParams
impl Unpin for RequestParams
impl UnwindSafe for RequestParams
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.