Struct nostr_types::PayRequestData
source · pub struct PayRequestData {
pub callback: UncheckedUrl,
pub metadata: Vec<(String, String)>,
pub allows_nostr: Option<bool>,
pub nostr_pubkey: Option<PublicKeyHex>,
pub other: Map<String, Value>,
}
Expand description
This is a response from a zapper lnurl
Fields§
§callback: UncheckedUrl
The URL to make the pay request to with a kind 9374 event
metadata: Vec<(String, String)>
Metadata
allows_nostr: Option<bool>
Whether the lnurl supports nostr zaps
nostr_pubkey: Option<PublicKeyHex>
The nostr public key of the zapper
other: Map<String, Value>
Other fields such as:
“maxSendable”: 100000000000, “minSendable”: 1000, “commentAllowed”: 32 “tag”: “payRequest”
Trait Implementations§
source§impl Clone for PayRequestData
impl Clone for PayRequestData
source§fn clone(&self) -> PayRequestData
fn clone(&self) -> PayRequestData
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 PayRequestData
impl Debug for PayRequestData
source§impl Default for PayRequestData
impl Default for PayRequestData
source§impl<'de> Deserialize<'de> for PayRequestData
impl<'de> Deserialize<'de> for PayRequestData
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 PayRequestData
impl PartialEq for PayRequestData
source§fn eq(&self, other: &PayRequestData) -> bool
fn eq(&self, other: &PayRequestData) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for PayRequestData
impl Serialize for PayRequestData
impl Eq for PayRequestData
impl StructuralPartialEq for PayRequestData
Auto Trait Implementations§
impl Freeze for PayRequestData
impl RefUnwindSafe for PayRequestData
impl Send for PayRequestData
impl Sync for PayRequestData
impl Unpin for PayRequestData
impl UnwindSafe for PayRequestData
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