Struct breez_sdk_core::input_parser::LnUrlPayRequestData
source · pub struct LnUrlPayRequestData {
pub callback: String,
pub min_sendable: u64,
pub max_sendable: u64,
pub metadata_str: String,
pub comment_allowed: u16,
pub domain: String,
pub allows_nostr: bool,
pub nostr_pubkey: Option<String>,
pub ln_address: Option<String>,
}
Expand description
Fields§
§callback: String
§min_sendable: u64
The minimum amount, in millisats, that this LNURL-pay endpoint accepts
max_sendable: u64
The maximum amount, in millisats, that this LNURL-pay endpoint accepts
metadata_str: String
As 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: u16
The comment length accepted by this endpoint
domain: String
Indicates 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.
allows_nostr: 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
ln_address: Option<String>
If sending to a LN Address, this will be filled.
Implementations§
source§impl LnUrlPayRequestData
impl LnUrlPayRequestData
sourcepub fn min_sendable_sats(&self) -> u64
pub fn min_sendable_sats(&self) -> u64
The minimum amount, in sats, accepted by this LNURL-pay endpoint
sourcepub fn max_sendable_sats(&self) -> u64
pub fn max_sendable_sats(&self) -> u64
The maximum amount, in sats, accepted by this LNURL-pay endpoint
sourcepub fn metadata_vec(&self) -> Result<Vec<MetadataItem>>
pub fn metadata_vec(&self) -> Result<Vec<MetadataItem>>
Parsed metadata items. Use metadata_str
to get the raw metadata string, as received from
the LNURL endpoint.
Trait Implementations§
source§impl Clone for LnUrlPayRequestData
impl Clone for LnUrlPayRequestData
source§fn clone(&self) -> LnUrlPayRequestData
fn clone(&self) -> LnUrlPayRequestData
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LnUrlPayRequestData
impl Debug for LnUrlPayRequestData
source§impl<'de> Deserialize<'de> for LnUrlPayRequestData
impl<'de> Deserialize<'de> for LnUrlPayRequestData
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 IntoDart for LnUrlPayRequestData
impl IntoDart for LnUrlPayRequestData
source§impl IntoIntoDart<LnUrlPayRequestData> for LnUrlPayRequestData
impl IntoIntoDart<LnUrlPayRequestData> for LnUrlPayRequestData
fn into_into_dart(self) -> Self
source§impl Serialize for LnUrlPayRequestData
impl Serialize for LnUrlPayRequestData
impl IntoDartExceptPrimitive for LnUrlPayRequestData
Auto Trait Implementations§
impl Freeze for LnUrlPayRequestData
impl RefUnwindSafe for LnUrlPayRequestData
impl Send for LnUrlPayRequestData
impl Sync for LnUrlPayRequestData
impl Unpin for LnUrlPayRequestData
impl UnwindSafe for LnUrlPayRequestData
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
§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
§impl<T> BoxIntoDart for Twhere
T: IntoDart,
impl<T> BoxIntoDart for Twhere
T: IntoDart,
fn box_into_dart(self: Box<T>) -> DartCObject
§impl<T> Downcast for Twhere
T: AsAny + ?Sized,
impl<T> Downcast for Twhere
T: AsAny + ?Sized,
§fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
Any
.§fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
Any
.§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