Struct LnurlPayRequest
pub struct LnurlPayRequest {
pub callback: String,
pub min_sendable: Amount,
pub max_sendable: Amount,
pub metadata: LnurlPayRequestMetadata,
pub comment_allowed: Option<u16>,
}Expand description
The validated and parsed LNURL-pay request (“payRequest”).
This is the internal representation used throughout the codebase.
For LUD-06 wire format serialization, use [LnurlPayRequestWire].
Fields§
§callback: StringCallback URL to request invoice from.
min_sendable: AmountMinimum sendable amount.
max_sendable: AmountMaximum sendable amount.
metadata: LnurlPayRequestMetadataParsed metadata with description and description hash.
comment_allowed: Option<u16>LUD-12: Max comment length in characters, if comments are supported.
Trait Implementations§
§impl Clone for LnurlPayRequest
impl Clone for LnurlPayRequest
§fn clone(&self) -> LnurlPayRequest
fn clone(&self) -> LnurlPayRequest
Returns a duplicate 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 more§impl Debug for LnurlPayRequest
impl Debug for LnurlPayRequest
§impl From<LnurlPayRequestWire> for LnurlPayRequest
impl From<LnurlPayRequestWire> for LnurlPayRequest
§fn from(value: LnurlPayRequestWire) -> LnurlPayRequest
fn from(value: LnurlPayRequestWire) -> LnurlPayRequest
Converts to this type from the input type.
§impl PartialEq for LnurlPayRequest
impl PartialEq for LnurlPayRequest
impl Eq for LnurlPayRequest
impl StructuralPartialEq for LnurlPayRequest
Auto Trait Implementations§
impl Freeze for LnurlPayRequest
impl RefUnwindSafe for LnurlPayRequest
impl Send for LnurlPayRequest
impl Sync for LnurlPayRequest
impl Unpin for LnurlPayRequest
impl UnwindSafe for LnurlPayRequest
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.