pub struct LnurlPayRequestDetails {
pub callback: String,
pub min_sendable: u64,
pub max_sendable: u64,
pub metadata_str: String,
pub comment_allowed: u16,
pub domain: String,
pub url: String,
pub address: Option<String>,
pub allows_nostr: Option<bool>,
pub nostr_pubkey: Option<String>,
}Fields§
§callback: String§min_sendable: u64The minimum amount, in millisats, that this LNURL-pay endpoint accepts
max_sendable: u64The maximum amount, in millisats, that this LNURL-pay endpoint accepts
metadata_str: StringAs per LUD-06, metadata is a raw string (e.g. a json representation of the inner map).
Use metadata_vec() to get the parsed items.
comment_allowed: u16The comment length accepted by this endpoint
domain: StringIndicates the domain of the LNURL-pay service, to be shown to the user when asking for payment input, as per LUD-06 spec.
Note: this is not the domain of the callback, but the domain of the LNURL-pay endpoint.
url: String§address: Option<String>Optional lightning address if that was used to resolve the lnurl.
allows_nostr: Option<bool>Value indicating whether the recipient supports Nostr Zaps through NIP-57.
See https://github.com/nostr-protocol/nips/blob/master/57.md
nostr_pubkey: Option<String>Optional recipient’s lnurl provider’s Nostr pubkey for NIP-57. If it exists it should be a valid BIP 340 public key in hex.
See https://github.com/nostr-protocol/nips/blob/master/57.md See https://github.com/bitcoin/bips/blob/master/bip-0340.mediawiki
Trait Implementations§
Source§impl Clone for LnurlPayRequestDetails
impl Clone for LnurlPayRequestDetails
Source§fn clone(&self) -> LnurlPayRequestDetails
fn clone(&self) -> LnurlPayRequestDetails
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LnurlPayRequestDetails
impl Debug for LnurlPayRequestDetails
Source§impl<'de> Deserialize<'de> for LnurlPayRequestDetails
impl<'de> Deserialize<'de> for LnurlPayRequestDetails
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>,
Source§impl From<LnurlPayRequestDetails> for LnurlPayRequestDetails
impl From<LnurlPayRequestDetails> for LnurlPayRequestDetails
Source§fn from(source: LnurlPayRequestDetails) -> Self
fn from(source: LnurlPayRequestDetails) -> Self
Source§impl From<LnurlPayRequestDetails> for LnurlPayRequestDetails
impl From<LnurlPayRequestDetails> for LnurlPayRequestDetails
Auto Trait Implementations§
impl Freeze for LnurlPayRequestDetails
impl RefUnwindSafe for LnurlPayRequestDetails
impl Send for LnurlPayRequestDetails
impl Sync for LnurlPayRequestDetails
impl Unpin for LnurlPayRequestDetails
impl UnwindSafe for LnurlPayRequestDetails
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request